On Mon, Sep 10, 2001 at 10:55:33PM +0200, Oliver Neukum wrote:
> > Wait, are you trying to protect the usbcore module or the individual
> > driver modules here?
> 
> The individual drivers. How the usbcore is protected is a good question.
> I'll investigate.
> 
> > If the driver modules, they should be protected by themselves (setting
> > MOD_INC before doing anything that could sleep).
> 
> Why ? We protect them with a semaphore, why not against unload ?
> Furthermore it is common code and in most cases done wrongly. For example 
> almost all drivers fail to do this properly for disconnect().

Ah, I understand now, during the probe() call.  Most all of the drivers
only do a MOD_INC when their open() function is called.  Ok, I'll apply
this.

thanks,

greg k-h

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to