Am Donnerstag, 27. März 2003 08:34 schrieb Duncan Sands:
> > driver core protects us with semaphores during probe/disconnect. We can
> > stop messing with the module usage counts.
>
> Hi Oliver, you are assuming
>
> (1) that usb_register is called within the module, and not on its behalf by
> eg a different module.
> (2) that there is a call to usb_deregister in the module's exit routine.
>
> These assumptions seem reasonable to me, but should maybe be documented.

Why? I propose the module usage count manipulations here because
the driver core has mutual exclusion through semaphores for these
operations.
Could you elaborate?
Also could you look at a possible race between usb_deregister
and ioctl through usbfs?

        Regards
                Oliver



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to