On Sun, Jul 07, 2002 at 08:06:29PM +0200, Andreas Jellinghaus wrote: > Hi, > > i found a proprietary binary only library, that speaks > usb via usbdevfs. i would like to reverse engineer it, > to make my own open source driver compatible. (this is > perfectly legal in germany, in case you wonder.) > > how can i examine the ioctl() it does? > > strace shows stuff like: > ioctl(7, USBDEVFS_CONTROL, 0xbffff760) = 0 > ioctl(7, USBDEVFS_CONTROL, 0xbffff760) = 35 > ioctl(7, USBDEVFS_CONTROL, 0xbffff76c) = 0 > ioctl(7, USBDEVFS_CONTROL, 0xbffff76c) = 13 > > how can i get the content of the ioctl buffers?
I would suggest modifying the usbfs code to print out the data to the system log for every ioctl call. Actually, I'd like to see that patch in the main tree, for just this purpose (I did it a long time ago to watch some Windows drivers running under vmware, but never kept the patch.) thanks, greg k-h ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek We have stuff for geeks like you. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
