> Unfortunately, your problem cannot be solved right now. There is currently > no way to register the device info with a USB device, so that it appears > somewhere in /proc/bus/usb. There are all sorts of problems with this > (driver having multiple configurations, multiple devices per USB device, > devices that don't have a /dev entry (network interfaces!)), etcetera, > etcetera.
It can be solved for any particular driver just by adding usb(dev)fs ioctl support to that driver. Define a structure, say FOO, that encapsulates the relevant device ID info ... for /dev files, major/minor and whether it's character or block; for network devices, something else. Then USBDEVFS_IOCTL can be used to pass an ioctl request for FOO to that driver (current configuration, one of N functions). And the driver can fill it out, so the user level code can find the "higher level" device IDs. It'd be useful to have a generic definition of "FOO", since there's no good reason each driver should re-invent that (and the ioctl to pass through USBDEVFS_IOCTL). Then drivers could just implement that ioctl, to provide that information in a usefully standard form. - Dave _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel