Linux USB + ptrace

Some info

I had a usb-dongle that only was provided with a windows-driver, which I did not have the source or hardware specs on. But I had the hardware, and needed it up and runnning for a project I was working on. So, what I did, was to fire up vmware, attach the small program below, connect vmware to the usb-device and log all traffic. Nice little program that both shows how usb in userspace works and the ptrace API for fetching out the kernel-calls (x86 32bit ptrace):