[quoted lines by Alan Stern on 2007/06/17 at 17:07 -0400] >I'm not sure what you're asking. Do you want a usbfs interface which >provides the same capability as the sysfs interface?
Yes, except that the setting would be just for the close of the file descriptor. >I doubt that the USB maintainer would accept it. Well ... I can always make a suggestion. The worst answer I can get is no different than not asking. :-) >Note that you don't actually need to do any searching to find the >correct sysfs directory. If you look in /sys/class/usb_device you'll >find a bunch of subdirectories with names like "usbdev1.2". Here the >first number is the bus number and the second is the usbfs device >number, so you can go directly to the one you want. In that directory >is a symbolic link named "device" which points to the actual sysfs >device directory. As a complete example, the usbfs path >/proc/bus/usb/002/003 corresponds to the sysfs path >/sys/class/usb_device/usbdev2.3/device. Excellent! That makes it a lot nicer. Now the code needn't be undesirably complex. There still is the issue of -1 vs 0, but as long as -1 when not supported yields EINVAL that's no problem. >So I don't see anything wrong with simply using the sysfs approach. The only reason I'd still raise is that it's usually nicer to use a temporary, rather than a permanent, setting. -- 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