Date: Thu, 25 Aug 2011 13:58:12 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-hackers@freebsd.org Cc: Daniel Grech <dgre090@gmail.com> Subject: Re: USB Stack Hooking Message-ID: <201108251358.12187.hselasky@c2i.net> In-Reply-To: <CAG167sZX=GPH5cFJpUD3DBaLwEK5YyJm13L%2B5qRb7WKCDpZ59Q@mail.gmail.com> References: <CAG167sZX=GPH5cFJpUD3DBaLwEK5YyJm13L%2B5qRb7WKCDpZ59Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 25 August 2011 13:04:26 Daniel Grech wrote: > Hi, I need to write a kernel module that would hook onto some function at a > low level in the USB stack in order to have direct access to the raw data > that is received from the USB Controller Hardware. Has this ever been done > before ? Any ideas as to which function I could hook onto to have access to > this data ? Hi, Recently there was an USB Packet Filter solution added, which can TAP data at the most common places. See /sys/dev/usb/usb_pf.c And: usbpf_xfertap() If you want to grab information lower than this, there is no formal API at the present moment. Are you thinking about USB Gadget/Device or USB Host data grabbing? --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108251358.12187.hselasky>