David Brownell ([EMAIL PROTECTED]) said: > >I distinctly recall them being in sysfs *somewhere*; since I'm not booted > >into 2.5 at the moment, I don't remember the exact location. > > Let me know if you find them somewhere. The original notion > was that they'd be the sysfs bus_id values. Although sysfs > does expose physical paths, their identifiers are not "stable".
For any device X-Y in /sys/bus/usb/devices, it appears X-Y:Z/name gives either "Hub", or "usb_make_path() interface Z". > (Any more than "ethN" identifiers are: they depend on the > order in which devices are initialized.) That's easily enough fixed, though, for ethernet devices. > >- set of USB network interfaces eth0-eth10 > >- set of ten USB network devices in /proc/bus/usb > > > >Cross reference them. > > That's a different problem ... it's a classic "usbfs doesn't > relate to the Real World" problem. I've long thought that > "usbfs" just needs (yet) another ioctl to expose the physical > path info. But ISTR that Greg has vetoed any more ioctls there. > > Why do you want that cross-referencing? Other than the pure > intellectual challenge, of course ... :) For keeping track of devices; rather than have one list of network hardware addresses, and one list of usb/pci/pcmcia/etc network devices, it's better to have one list that just has the network hardware address associated with the proper device. > Not all network links are "ethN", and many > don't even have stable Ethernet addresses -- so "nameif" and > similar tools can't always help. What devices don't have stable ethernet addresses? PtP links/cables, or something else? Bill ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel