Re: [PARPORT] Multiple ppuser drivers


Tim Waugh (tim@cyberelk.demon.co.uk)
Fri, 17 Jul 1998 18:45:41 +0100 (BST)


On Fri, 17 Jul 1998, Andrea Arcangeli wrote:

> We could allow only one process to open /dev/parportx at a time.
>
> If you like to have more than one ppuser process that schedule the same
> parport I think it' s better define something like:
>
> dev name minor
> parport0a 0
> parport0b 1
> parport0c 2
> parport0d 3
> parport1a 4
> ...
>
> This isn' t malleable but it' s a rock solid (maybe a bit too much ;-)
> design.
>
> I have not thought about this a lot (nor I have read the code), it' s only
> an idea and I could be wrong.

This is exactly what I've done in ppuser-0.7. Top four bits of the minor
number indicate the parport number; bottom four distinguish between
devices.

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 2.0b3 on Wed 30 Dec 1998 - 10:18:00 EST