> We could improve things alot if /proc/bus/usb/devices had a better > design :(
Well, that was a first version. Nobody's really done much with that kernel code other than fix bugs.
> It is updated dynamically, reading it can take an unknown amount of time > and it triggers bus traffic. You can not do > grep -Eq '^I: .* Driver=\(none\)$' /proc/bus/usb/devices
No, but you could open every /proc/bus/usb/BBB/DDD file, read its descriptors, and then ask each interface what driver bound to it ... the answer may be "none".
If indeed /proc/bus/usb is available ... which hotplug has never assumed.
- Dave
------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel