From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Sun, 08 Jun 2003 19:11:47 +0000 Subject: Re: [PATCH] hotplug usb.rc changes Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Olaf Hering wrote: > 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. _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel