[quoted lines by Alan Stern on 2007/06/18 at 12:03 -0400] >I shouldn't think it would be too much harder to read several sysfs >files than a single usbfs file.
Except that it starts to get messy if each system call is protected with error checking and each piece of data read in as text is tested for validity. Perhaps some or all such carefulness isn't necessary, but it does tend to protect against unforeseen problems. It's much simpler to read it all in at once. >Do you really need anything other than >the vendor ID, the product ID, and perhaps the bcdDevice value? That's mostly true for device selection. Once we know we have the right device, though, we do use the string index fields to fetch the strings for logging. I know the strings teemselves are in sysfs, but to keep that code portable we read the string desccriptors from the selected device. It was just an idea which would make switching back to a truly passive device descriptor read (like it has been before autosuspend) easy, not only for us but also for other applications. -- Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me EMail: [EMAIL PROTECTED] | Canada K2A 1H7 | if you're concerned about Hell. http://FamilyRadio.com/ | http://Mielke.cc/bible/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users