lkml.org 
[lkml]   [2012]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: usbview 2.0 release
On Tue, Oct 23, 2012 at 10:17:22AM +0530, Anil Nair wrote:
> Hello Greg,
>
> > No, debugfs needs to be mounted at /sys/kernel/debug/ Is it not mounted
> > that way for you? Perhaps it is mounted with root-only access (default
> > for 3.7-rc1 and newer kernels)?
>
> Yes you are right i verified "/sys/kernel/debug" has root-only access.
> The kernel version i am using is 3.0.0-26-generic(Default kernel
> provided by ubuntu 11.10 amd64).
>
> > I should just port the thing to use libusb instead of debugfs, but
> > that's a larger job for such a low-priority tool.
>
> If you don't mind i would like to give it a try, though most of the
> terminologies i don't know but i would like to give it a try, just
> guide me on way of doing it thats all.

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.

It shouldn't be that hard, if you run into any problems, please let me
know.

thanks,

greg k-h


\
 
 \ /
  Last update: 2012-10-24 05:41    [W:0.762 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site