> Alan Cox wrote:
> 
> >         open via usbdevfs
> >         failed ?
> >         open /dev/usbraw
> >         ioctl(pick the end point)
> >         open /dev/usbraw
> >         ioctl(pick the 2nd end point)
> >         go..
> 
> Race with device unplug?

No more than usbdevfs has

[Argument

        Treat the ioctl() as the open functionality in usbdevfs.
        Treat the open as internal housekeeping


If the device vanishes between open and ioctl it is equivalent to it vanishing
        after decicing to open but before the open with usbdevfs

If the device vanishes after the ioctl it is equivalent to the post-open
        case with usbdevfs

(Assumption: We only allow the ioctl once per fd opened)



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

Reply via email to