Question on structure of USB (specifically USB Serial) stack

Hans Petter Selasky hps at selasky.org
Sat Jul 18 05:01:41 UTC 2020


On 2020-07-17 01:18, Brian Mcgovern (bmcgover) wrote:
> What I'm hoping to do is pin some USB devices with FTDI interfaces to more consistent name, similar to /dev/usb, based on the tree of struct usb_device entries and their respective addresses.

You might get some ideas how to get struct usb_device inside ucom, by 
looking at this differential revision:

https://reviews.freebsd.org/D21886

Basically you need to make a new API which is passed the uaa->device 
pointer. Then no void * casting will be needed.

--HPS


More information about the freebsd-hackers mailing list