> > I tried this. I added the ioctl function to my driver. If I call this > > ioctl with the registered device file opened, it works fine. > > If I try to do this via usbfs (/proc/bus/usb/001/0xx), the open call > > doesn't invoke the open function of my driver. Can someone give my a hint > > what I miss to "connect" my driver to the appropriate file in usbfs ? > > ioctl() through usbfs will not call open(), you'll get an ioctl _without_ > prior open(). For this to work you have to give an ioctl method to > struct usb_driver, not file_operations. An example for this can be found > in hub.c
Great ! It works. Thank you very much for your help. I think this saved me a lot of time and silly work in the driver ! Best regards, Thorsten ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel