On Sun, Jul 07, 2002, Andreas Jellinghaus <[EMAIL PROTECTED]> wrote: > 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'm pretty sure you'll need to modify strace to fetch the data and display it. The data that is passed to USBDEVFS_CONTROL is a structure, among one of the fields is a pointer to the data. I know strace will do something similar for other system calls, so I suspect it'll be relatively straight forward. JE ------------------------------------------------------- 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
