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

Joao Pedro Clemente jpcl at rnl.ist.utl.pt
Mon Jan 16 14:04:18 GMT 2006


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.




More information about the kubuntu-devel mailing list