On Wed, Oct 30, 2002, Dan Streetman <[EMAIL PROTECTED]> wrote: > This patch adds ioctls to get the active config# and interface setting# > through usbfs. > > As far as I can tell, the only way to currently get the active config is > via the devices file (generates bus traffic, I'd rather not use it) and > there is no way from userspace to determine the active interface alternate > setting. > > The get-interface ioctl uses "struct usbdevfs_setinterface". It could > be changed to use "struct usbdevfs_getinterface", and just add a > #define usbdevfs_getinterface usbdevfs_setinterface > above the struct definition.
Is the USB get configuration control message (section 9.4.2) and get interface control message (section 9.4.4) not good enough? The only reason we need a SETCONFIGURATION and SETINTERFACE calls is because the core maintains some state and changing it behind it's back is not nice. JE ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel