struct usb_config: pass custom parameter to callback?

Lev Serebryakov lev at serebryakov.spb.ru
Fri Nov 12 15:17:00 UTC 2010


Hello, Freebsd-usb.

  Is it possible to pass custom parameter to xfer callback, configured
via "struct usb_config"?

  I'm writing driver for device, which have multiple equivalent ports,
  each whith its own paor of pipes (for IN and OUT), and I want to use
  only   two   callbacks.   Is  it  possible? Or should I make N pairs
  of almost-the-same thunk functions?


-- 
// Black Lion AKA Lev Serebryakov <lev at serebryakov.spb.ru>



More information about the freebsd-usb mailing list