On Wed, 6 Jul 2005 15:36:24 -0400, "Greg Lee" <[EMAIL PROTECTED]> wrote:
> > > Is there an ioctl that I can call on a file handle that will allow me > > > to map from the device to the underlying hardware type? Any other > > > suggestions? > > > > I'm sure there's a way to get this information just by looking at paths > > and symlinks in /sys > > I assume you mean /proc/sys? Uh-oh. I sense a user of 2.4 kernel here. On 2.4, you still can match I/O ports and find which controller is where on the PCI bus, by reading /proc/ioports and /proc/bus/usb/devices. But it's icky. Why don't you just migrate to 2.6 and get /sys? -- Pete ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
