Adding sysfs symlinks for usbfs
Alan Stern <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Greg: Is there any reason not to create a sysfs directory: /sys/bus/usb/devices/usbfs which would contain symlinks to each USB device, where the name of the symlink would be $busnum.$devnum ? For example: /sys/bus/usb/devices/usbfs/1.1 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb1/ /sys/bus/usb/devices/usbfs/1.2 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb1/1-2/ This would permit users of usbfs to quickly find the sysfs directory for a particular device without having to search through a whole bunch of device directories and files. Would it be better to create the usbfs directory one level higher, directly under /sys/bus/usb ? If there's nothing wrong with this, what is the best way to do it? Use a bare kobject for the directory? Thanks, Alan Stern ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel