Re: [PARPORT] parport read

From: Tim Waugh (
Date: Wed Oct 22 2003 - 06:18:46 EDT

  • Next message: Cherry Cortes: "Re: [PARPORT] parport read"

    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:


    If you're getting EINVAL, make sure you have actually claimed the port


    -- To unsubscribe, send mail to: --
    -- 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