kernel 2.6.15-12 and /proc/bus/usb/devices

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

kernel 2.6.15-12 and /proc/bus/usb/devices

Joao Clemente

Hi people.
I upgraded to the lastest kernel (2.6.15-12) and now I'm missing
/prob/bus/usb/devices, altough I can get a lsusb listing.....
I am wondering how can this be (where is lsusb getting its data?!?) , and
if it could be considered a bug or not, since it breaks applications that
were expecting /proc/bus/usb/devices to exist.

--
                        Joao Pedro Clemente
        jpcl @ rnl.ist.utl.pt
                                        (when not working out)
                                        (when not sleeping)
                                        (when not surfing)
                                        (when not ... ;)


--
kubuntu-devel mailing list
[hidden email]
http://lists.ubuntu.com/mailman/listinfo/kubuntu-devel
Reply | Threaded
Open this post in threaded view
|

Re: kernel 2.6.15-12 and /proc/bus/usb/devices

Loic Pefferkorn-2
Hello,

Using strace lsusb seems to gather data from /dev/usb:

$strace -e trace=open lsusb
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libusb-0.1.so.4", O_RDONLY)  = 3
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
open("./usb.ids", O_RDONLY)             = -1 ENOENT (No such file or
directory)
open("/var/lib/misc/usb.ids", O_RDONLY) = 3
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
open("/dev/bus/usb/005", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
open("/dev/bus/usb/005/001", O_RDWR)    = 4
open("/dev/bus/usb/005/001", O_RDWR)    = 3
open("/dev/bus/usb/001", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
open("/dev/bus/usb/001/001", O_RDWR)    = 4
open("/dev/bus/usb/001/001", O_RDWR)    = 3
(...)


Cheers,
Loic


Le Dimanche 15 Janvier 2006 10:56, Joao Pedro Clemente a écrit :
> Hi people.
> I upgraded to the lastest kernel (2.6.15-12) and now I'm missing
> /prob/bus/usb/devices, altough I can get a lsusb listing.....
> I am wondering how can this be (where is lsusb getting its data?!?) , and
> if it could be considered a bug or not, since it breaks applications that
> were expecting /proc/bus/usb/devices to exist.


--
kubuntu-devel mailing list
[hidden email]
http://lists.ubuntu.com/mailman/listinfo/kubuntu-devel
Reply | Threaded
Open this post in threaded view
|

Re: kernel 2.6.15-12 and /proc/bus/usb/devices

Joao Clemente

Thank you Loic

Ok, so that explains whi lsusb works... but was there a reason for
/proc/bus/usb/devices dissapearance? Was this due to a kernel change, or
was caused by some option on last ubuntu's kernel compile?
If this was caused by the latter, maybe it should be reverted because of
the impact on apps that read /proc/bus/usb/devices?

My EUR 0.02 :-p

--
                        Joao Pedro Clemente
        jpcl @ rnl.ist.utl.pt

On Mon, 16 Jan 2006, Loic Pefferkorn wrote:

> Hello,
>
> Using strace lsusb seems to gather data from /dev/usb:
>
> $strace -e trace=open lsusb
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> open("/lib/libusb-0.1.so.4", O_RDONLY)  = 3
> open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
> open("./usb.ids", O_RDONLY)             = -1 ENOENT (No such file or
> directory)
> open("/var/lib/misc/usb.ids", O_RDONLY) = 3
> open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
> open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
> open("/dev/bus/usb/005", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
> open("/dev/bus/usb/005/001", O_RDWR)    = 4
> open("/dev/bus/usb/005/001", O_RDWR)    = 3
> open("/dev/bus/usb/001", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
> open("/dev/bus/usb/001/001", O_RDWR)    = 4
> open("/dev/bus/usb/001/001", O_RDWR)    = 3
> (...)
>
> Cheers,
> Loic
>
> Le Dimanche 15 Janvier 2006 10:56, Joao Pedro Clemente a écrit :
> > Hi people.
> > I upgraded to the lastest kernel (2.6.15-12) and now I'm missing
> > /prob/bus/usb/devices, altough I can get a lsusb listing.....
> > I am wondering how can this be (where is lsusb getting its data?!?) , and
> > if it could be considered a bug or not, since it breaks applications that
> > were expecting /proc/bus/usb/devices to exist.


--
kubuntu-devel mailing list
[hidden email]
http://lists.ubuntu.com/mailman/listinfo/kubuntu-devel