Re: How to test usb interfaces for having drivers?
Alan Stern <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 22 Aug 2007, Oliver Neukum wrote: > Hi, > > how can I test for interfaces having drivers associated? Test from where? In userspace you can look at the contents of /proc/bus/usb/devices or you can search through the subdirectories of /sys/bus/usb/drivers. Inside the kernel you can test intf->dev.driver, where intf is a struct usb_interface *. This is racy unless you first call usb_lock_device(). 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