Re: usbview 2.0 release

From: Greg KH
Date: Wed Oct 24 2012 - 12:41:08 EST


On Wed, Oct 24, 2012 at 10:05:48PM +0530, Anil Nair wrote:
> Hello Greg,
>
> > Look at how the lsusb tool walks the list of all USB devices in the
> > system, using libusb, and port that code over to usbview, replacing the
> > big "walk and parse the devices file" functionality.
> >
>
> You meant to say replace the functions calling or using debugfs by
> API's of libusb?

Yes. But note, the debugfs "usage" is just reading a single file and
parsing the structure of that file and filling out an internal "tree" of
USB devices. So moving that to use libusb should be pretty simple.

> Well i will try working on it, but i can't say a sure time when it
> will be completed..... i know working of USB just need to go through
> libusb API's and some examples.

Again, look at the usbutils source code, it does most of this for you
already, and you can take the code from there since the license is the
same.

good luck,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/