Bill Nottingham wrote:

Actually, I'd say the usb_make_path() physical IDs are not really
available through sysfs.


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". (Any more than "ethN" identifiers are: they depend on the order in which devices are initialized.)


How exactly would you be "given a USB device"?


Given:

- 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 ... :)

(And hmm, how about cross-referencing the "usbfs" and "sysfs"
files for the same device?)


This requires using what's returned by GDRVINFO, and if they're all
using usb_make_path() in 2.4, this appears to be pretty messy.

No different than in 2.5, as I said.


The GDRVINFO path ID is intended to correspond to things like
the ttyNN (or lpN) path IDs:  stable until you start re-wiring
things, and appropriate to save in config files that know where
each given link goes.  Not all network links are "ethN", and many
don't even have stable Ethernet addresses -- so "nameif" and
similar tools can't always help.

Tossing "usbfs" into that mix does point at another problem
that's likely worth solving, but it's hard to solve that without
fixing "usbfs" to make more device info available.

- Dave






------------------------------------------------------- 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

Reply via email to