Johannes Erdfelt wrote:

> I actually partially implemented a patch to create seperate nodes for
> each endpoint on device through devfs obviating the need for using
> ioctl's like this. I only got control working, but if there's interest,
> I'll finish it.

I thought about this too, but:

1) It doesn't solve Viro's raves about ioctl's, as the main cause
   for the ioctl's is the inherent structure in the USB transactions
   that isn't easily mapped to a stream of bytes
2) Gives you atomicity problems.
   Assume a program needs two endpoints, it opens the first,
   then sleeps for whatever reason, in the mean time the
   device gets unplugged and a new device plugged in which
   gets the same device number, then the program wakes up
   and opens the second ep, which will now be an ep of
   the new device.

   Granted, this race is very small, but nevertheless
   there 8-)

But I don't care overly much which way we do it,
I think it's more important to arrive at a stable API
in the near future...

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to