[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-usb-devel
Subject:    [linux-usb-devel] /sys interface and usb
From:       "ismail (cartman) donmez" <voidcartman () yahoo ! com>
Date:       2003-05-12 7:06:52
[Download RAW message or body]

Hi all!

I am still trying to get /dev/sdXXX using /sys interface but because I got 
only one usb disk , I am not sure of some things .

I got a printer and I plug it in I got /sys/bus/usb/devices/usb1/1-1 directory 
created. Then I plug in my usb flash disk I got 
/sys/bus/usb/devices/usb1/1-2.

Now my questions

1-  ls -al /sys/block/sda/device lrwxrwxrwx    1 root     root           49 
2003-05-12 10:03 device -> ../../devices/pci0/00:07.2/usb1/1-2/1-2:0/1:0:0:0/

Now if I had two or more devices what would device link would show ? ( In my 
example it shows somewhere under /sys/bus/usb/devices/usb1/1-2 directory ).

2- Does the number 1-1 , 1-2 gives any hint about /dev/sdXXX ?

3- Does usb2 devices get their info under  /sys/bus/usb/devices/usb2 ?


With Best Regards,
/ismail donmez


-- 
Brain fried -- Core dumped 


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic