Re: [PARPORT] Questions with ppdev

From: Tim Waugh (twaugh@redhat.com)
Date: Thu Mar 15 2001 - 05:10:11 EST

  • Next message: Michael Reinelt: "Re: [PARPORT] Questions with ppdev"

    On Thu, Mar 15, 2001 at 11:04:41AM +0100, Michael Reinelt wrote:

    > But I want kind of a 'fallback', because a lot of users will not load
    > lp.o with the right options. I wnat to get exclusive access, If I can't
    > get it, I will print a big fat warning, and continue without exclusive
    > access. Is there a way to clear the EXCL flag (other than closing an
    > reopening the device?)

    You'll have to close and reopen the device.

    > Thanks.
    >
    > But how does lp.o load parport_pc?

    It calls parport_register_driver, which triggers parport into wanting
    to load a lowlevel port driver.

    > I don't think that select() has microsecond resolution, I suppose it
    > will reschedule and therefore have at least a 10ms delay (which is far
    > too long). But I will have a look at the kernel code..

    For small delays it will do the right thing, IIRC.

    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 : Thu Mar 15 2001 - 05:14:08 EST