Doesn't happen right now.  The problem scenario is:

    - Plug in device 1, driver "D" gets modprobed by hotplug
    - Plug in device 2, needs driver "D", not modprobed
    - Unplug device 1 -- now what:  "rmmod D"?

If device 2 happens to be in use, then "rmmod" would be a NOP
since the use count will be nonzero.   But in the equally typical
case that device 2 doesn't happen to be open at that instant,
"rmmod" would remove the driver "D".

- Dave


----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 09, 2002 12:26 PM
Subject: [linux-usb-devel] Automatic driver unload


> Should I expect my usb kernel module to be automatically unloaded when
> the device is unplugged, if the module was originally loaded via
> modprobe from hotplug? I was expecting that to happen, but it doesn't,
> but maybe my expectations are wrong.
> 
> Thanks,
> -Chris
> 



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

Reply via email to