From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Fri, 27 Jan 2006 20:45:29 +0000 Subject: Re: [Libusb-devel] udev craze: need /dev/bus/usb rationale Message-Id: <20060127204529.GA17394@kroah.com> List-Id: References: <20060126094517.GA4063@bode.aurel32.net> In-Reply-To: <20060126094517.GA4063@bode.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Jan 27, 2006 at 11:29:57AM -0800, Johannes Erdfelt wrote: > On Fri, Jan 27, 2006, Kay Sievers wrote: > > On Thu, Jan 26, 2006 at 10:38:13PM -0500, Charles Lepple wrote: > > > Is there a plan for a successor to /proc/bus/usb/devices (that file > > > itself, not the /proc/bus/usb/012/345 nodes)? > > > > > > If I am not mistaken, the 'devices' file allows ordinary users to > > > fetch the manufacturer, product and serial strings - without needing > > > to open the individual device nodes in read-write mode, and issue > > > requests to fetch those particular string descriptors. > > > > These informations are all available in sysfs. > > In libusb 1.0, we open /proc/bus/usb/devices and poll on the fd to get > informed when the bus state changes (device plugged in or disconnected). > > Is there a replacement in sysfs? Get called by udev or HAL when a device is added or removed. If you use HAL, you can just set up a simple dbus notifier for this. thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ 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