On Mon, 28 Dec 2009, Oliver Neukum wrote: > Am Sonntag, 27. Dezember 2009 05:51:55 schrieb Greg KH: > > On Sat, Dec 26, 2009 at 07:35:41PM +0500, Andrey Rahmatullin wrote: > > > Hello. Will be lsusb(8) rewritten to use new libusb? > > > > No, it is being currently rewritten to use libudev instead. Work is > > going slowly, but it is usable now, it's at: > > github.com/gregkh/lsusb.git > > if anyone wants to look at it. > > Nice, but I have to question the approach. What do you do if you > want to debug udev malfunctioning and do you want anybody > anybody who needs lsusb to also use udev? If you want to debug udev and see lsusb-type information, you can always use /sys/kernel/debug/usb/devices. Making udev a prerequisite for lsusb is not too much worse than making libusb a prerequisite. Somewhat worse, perhaps, because udev has to be intimately involved in system operation whereas libusb can be added without affecting anything else. What I wonder about is how the new version of lsusb could retrieve all the information that the old version did. Not all of it is exposed in sysfs, which means it would be invisible to udev. An example would the report descriptors for an HID device. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html