Hello.

I'm not subscribed to this list, so please Cc: any reply. I'm writing
here on suggestion of Vojtech.

I'm currently studying the USB kernel subsystem using modules, and I
noticed how the usage count of specific device never raises above
zero.  Should that be construed as a feature?

I'd personally prefer to have the driver marked as busy when there is
a device using it. For example, a devault crontab in Debian removes
all unused modules any now and then, and I isn't nice to have
usbmouse.o removed while I'm using the mouse. I understand that you
may report this as a Debian bug, but I think it's pretty normal for
people to remove unused modules.

Shouldn't the probe handler of each driver increment the usage count
and the disconnect handler decrement it? If one really wants to remove
the driver, it's still posssible to unplug the device.

The best option would be to increment the count when the device is
actually being read, but the current layout of the USB and input
subsystems make it impractical to do so, and I wouldn't like such
feature to be implemented as things are clean enough as they are now.

Any reply is welcome, as I'm on deadline delivering an article on USB
and I'd like to know if the current behaviour will or won't change.

Thanks for your patience
/alessandro

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

Reply via email to