Hi Oliver, thanks for the quick reply. Oliver Neukum wrote: > Am Donnerstag 11 Oktober 2007 schrieb Phil Endecott: >> Claiming devices: I understand how the usb core offers new devices to >> kernel drivers based on the struct usb_device_id. Is there any way for >> my user-space driver to influence this process? (A sufficient solution >> for me for the time being would be a way to temporarily disable the >> kernel matching while my user-space code is running; for example, I'd >> be happy to load a small kernel module that clobbers the existing >> matching somehow.) > > You can unbind a device from its driven with an ioctl through usbfs.
OK; is it one of the ones listed at the end of usbdevice_fs.h ? I don't see an obvious one... I would be happier if I could prevent it from ever getting bound in the first place though! >> Choosing configurations: It looks as if I get two uevents when a device >> is attached, one for the unconfigured device and another once the core >> has done SetConfiguration. Is there any way for my driver to influence >> the SetConfiguration process? Presumably I could do a >> USBDEVFS_SETCONFIGURATION if I were unhappy with the configuration that > > Yes, what's wrong with that? Nothing at all, except that the device will have been given first one configuration and then another in quick succession. I don't know if that would ever be a problem. >> it had chosen. (Is there any way for a kernel driver to influence the >> SetConfiguration process?) > > usb_driver_set_configuration() whose semantics are a bit strange. Thanks, I'll have a look at that. Regards, Phil. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users