On Wed, Oct 22, 2003 at 02:19:26AM -0700, Cherry Cortes wrote:
> We're having problem making the read() to /dev/parport0 work. The
> function always returns -1. We have tried recompiling the kernel
> (we're using 2.4.18-14) with CONFIG_PARPORT enabled but it does not
> seem to work. We also set the mode to ECP and direction to
> reverse. Could you help us with this?
You'll need to check errno to see what the actual error is. read()
from that device can return several errors, including:
EINVAL
ENOMEM
EFAULT
If you're getting EINVAL, make sure you have actually claimed the port
first.
Tim.
*/
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Wed Oct 22 2003 - 06:20:08 EDT