On Sat, Dec 08, 2001 at 09:10:47PM -0800, David Brownell wrote: > > > > What cases? I don't know of cases that aren't just as hard as parsing > > the device tree by walking the directories. > > Cases like: you're already walking the directories, so > there's no reason to write a parser for "devices" ... :)
As you walk the directory tree, a device could be removed giving you interesting problems :) The "devices" file _should_ provide a snapshot in time of the tree (which it does quite well, if you have less than 4k in the file.) It is also much easier to use scripting languages with the "devices" file (see Randy's small perl scripts to display the usb bus topology for an example of this.) thanks, greg k-h _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel