On Tue, 30 May 2000, Johannes Erdfelt wrote:

> On Tue, May 30, 2000, Thomas Sailer <[EMAIL PROTECTED]> wrote:
> > Daniel Streetman wrote:
> > 
> > > I'm assuming the 'devices' file is intended for users, not programs.
> > 
> > Wrong assumption 8-) The file is also intended to be machine
> > parseable.
> > 
> > That's how lsusb -t gets the topology, I suggest looking at it
> > (usb.in.tum.de, CVS module usbutils).
> 
> Ugh, before anyone starts, please don't bring the binary vs machine
> parsable ASCII war onto linux-usb. Leave it on linux-kernel please.

Yes, ugh.  My concern was not a binary vs ASCII issue, I just didn't want
to read the entire 'devices' file on every connect/disconnect.

> > > So basically, I'm wondering how to get all the info that's in the
> > > devices file, but on a per-device basis (by using the device
> > > nodes/files ?).
> > 
> > If you really want to go that route, you need to manually issue
> > control messages to each device in order to retrieve config
> > descriptors.
> 
> This is incorrect. Please look at my last patch. I don't know which -ac
> release it went into (or if even did go in), but it was sent on by Randy
> atleast.

Ok.  I like that (the patch) better than manually asking the devices for
their config descriptors.



-- 
Dan Streetman
[EMAIL PROTECTED]
---------------------
186,272 miles per second:
It isn't just a good idea, it's the law!


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to