Hi,

I need to update some software that programatically determines what devices are present on a Linux system, to now support USB devices. I've travelled or started down three paths so far...

The current design/implementation identifies devices via /sys/devices, then matches up based on the info found there, the appropriate file in /dev for SCSI and IDE devices to communicate with them. I have had little success determining how USB devices are represented in /sys or /dev. eg. naming conventions, info available, operations available, etc. - Should I be able to continue to use the existing design/implementation based on /sys & /dev with minimal changes? - Where might I find a good description of the representation of USB devices in /sys and /dev? - Is there USB information present in /sys and /dev that will enable me to know I'm looking at the same device in both places?

We did find and glance at the documentation and implementation of the 'lsusb' command, but it appears to be based on /proc. Should I make use of /proc? My (beginner) understanding was that this was the type of information that is being migrated from /proc to /sys. I'm not sure if that's linked to newer kernels or not...

I have now found, but have not had a chance to read in detail, the Linux USB Guide, that seems to indicate there is a specific Linux-USB subsystem. - Is use of it the best way to discover and communicate with USB devices? In other words, do I have to change the design/implementation of this software to make use of it? - If I use it in conjunction with the original design/implementation, is there potential overlap in what will be "discovered" in /sys/devices and what the Linux-USB subsystem provides? - Likewise, if I use it, should/must it be used instead of a /dev file to communicate with the device? Can I determine which /dev file represents what appears in the Linux-USB subsystem?

Any information and/or pointers to information will be appreciated a great deal.

Thank you,
BobCap.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to