Re: [PARPORT] parport read

From: Cherry Cortes (osagimakoto@yahoo.com)
Date: Wed Oct 22 2003 - 06:24:13 EDT

  • Next message: Tim Waugh: "Re: [PARPORT] parport read"

    Tim Waugh <twaugh@redhat.com> wrote:
    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.
    */

    errno was EAGAIN and call to PPCLAIM was successful.

    ---------------------------------
    Do you Yahoo!?
    The New Yahoo! Shopping - with improved product search

    -- 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:26:10 EDT