Re: [PARPORT] Example Code

From: Tim Waugh (twaugh@redhat.com)
Date: Tue Apr 03 2001 - 13:20:56 EDT

  • Next message: Peter Ryser: "Re: [PARPORT] Example Code"

    On Sat, Mar 31, 2001 at 05:07:31PM +0100, Philip Blundell wrote:

    > The only bit I'm not keen on is actually using write() as the
    > mechanism; I'd prefer to invent "ioctl(PPSPEW)" or something, so
    > that the core parport code doesn't have to change.

    Which seems better?

    ioctl(fd, PPSPEW, buffer, len)

    or

    ioctl (fd, PPHANDSHAKE, &turn_off);
    write (fd, buffer, len);

    or

    ioctl (fd, PPSETMODE, IEEE1284_MODE_SPEW);
    write (fd, buffer, len);

    or something else?

    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 : Tue Apr 03 2001 - 13:32:06 EDT