> Q: Why shouldn't I be able to rmmod a module that is controlling a
> device? All normal modules (non-USB) allow this ...
Nope. All normal modules are unremovable when the device is in use.
So, either you implement a feedback from the mousedev and keybdev
modules towards the usbmouse and usbkeyb drivers, so they know when
their data is being used, or you consider the fact that the device is
plugges as a symptom that is is being used.
While it's true that having a PCI frame grabber doesn't mean it is in
use, you can't remove the device while the computer is on, and there
is a clean way to know if someone is grabbing. With USB things are the
other way round: you can unplug the device and you can't easily know
whether someon is reading your data.
The more I think of it, the more I'm convinced that having a zero
usage count while the device is in use is a real bug. I definitely
don't want my keyboard driver to be removed while i'm typing.
>> BTW: it would be nice to have kmod support when people plugs devices
>> in.
> Johannes Erfeldt is working on something like that.
Then you agree that "device plugged" means "device in use". Every
other module is autoloaded at open time, but you agree that USB
drivers ought to be loaded at plug time.
/alessandro
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]