Results 1 to 2 of 2
Ok, so I know that the filesystem for the usb devices gets mounted at /proc/bus/usb. And the first device detected is mapped to /dev/sda and is represented in /proc/scsi/usb-storage-0. My ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-10-2005 #1Just Joined!
- Join Date
- Jan 2005
- Posts
- 1
Regarding the /proc/bus/usb/devices file
Ok, so I know that the filesystem for the usb devices gets mounted at /proc/bus/usb. And the first device detected is mapped to /dev/sda and is represented in /proc/scsi/usb-storage-0. My question is concerning a relation (if any) from a line in /proc/bus/usb/devices to sda.
Say the topology line in the /devices file reads:
T: Bus=00 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
How is /usb-storage-0/ linked to this file? If they are not linked, how is /devices updated? Is there any other way of seeing what bus,level, and port ID the device is sitting at? Thank you for your time.
- 01-11-2005 #2
I think the kerenl updates that (pseudo-)file in /proc when ever an USB device is attached/detected or removed. Not sure, but I think "usbview" is what you're looking for, it shows a tree with (lot's of info also avalible in a pane) the attached devices.
Regards Scienitca (registered user #335819 - http://counter.li.org )
--
A master is nothing more than a student who knows something of which he can teach to other students.


Reply With Quote
