[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: USB Stack Hooking
From: Hans Petter Selasky <hselasky () c2i ! net>
Date: 2011-08-25 11:58:12
Message-ID: 201108251358.12187.hselasky () c2i ! net
[Download RAW message or body]
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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic