Skip to contentSkip to conversation

device number increasing in /proc/bus/usb ?

DISCUSSION wwp 2 participants 2 messages Nov 22, 2003 – Nov 23, 2003

lore
Share & tools
lore

wwp

author
#0 lore raw

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
#1 lore raw

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