device number increasing in /proc/bus/usb ?
Hi hotplug folks,
is it normal that device number increases each time I unplug/plug an USB mouse? For instance: first plug shows /proc/bus/usb/xxx/nnn, an each time I unplug/replug the device, nnn increases.
TIA,
Signature · 12 lines
wwp ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
On Sun, 23 Nov 2003 00:27:18 +0100 wwp <[email protected]> wrote:
| Hi hotplug folks, | | | is it normal that device number increases each time I unplug/plug | an USB mouse? For instance: first plug shows /proc/bus/usb/xxx/nnn, | an each time I unplug/replug the device, nnn increases.
Yes, the USB subsystem doesn't reuse device numbers immediately. Instead it assigns them in a round-robin manner, up to 127, then restarting back at the low end with unassigned numbers.
--
~Randy
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel