On Fri, 28 May 2004, Sebastian Henschel wrote:

> hello there...
> 
> i am currently porting usbview (http://usbview.sf.net) to GTK2 and
> sysfs. you can grab the current pre-version from
> http://kodeaffe.de/usbview-2.0pre2.tar.gz.
> 
> while doing this, i realized that there is some information missing
> under /sys/bus/usb/devices/ what was available under
> /proc/bus/usb/devices. the following pieces are missing:

What do you mean, "was available"?  It's still there.

> topology: portNumber, count

The port # is available as the last part of the directory name, the part
following the final '-' or '.'.

> device: maxPacketSize
> bandwidth: all information (allocated, total, percent, interrupt, isoc)
> interface: drivername (would it be smart to parse /sys/bus/usb/drivers/?)
> endpoint: all information (address, attributes, maxpacketsize, interval,
>       direction, type)
> alternate settings
> 
> 
> is it somewhat planned to include these?

I don't know what anybody else is planning, but I don't have any plans to 
change the way this works.

>  i do not know about the
> inner workings of sysfs, but is this information perhaps device- or
> driver-dependent?

Of course it's device-dependent!  Obviously things like maxPacketSize and
endpoint addresses will be different for different devices.  However it is
not driver-dependent (other than the driver name).

>  should this question be posed in linux-usb-devel?

Yes it should; the USB users don't control the direction of future
changes.  But you'd probably get about the same answer as I'm giving you.  
In general, the feeling probably is that /proc/bus/usb/devices is there
for a reason, so you should use it.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to