Date: Fri, 12 Nov 2010 18:01:44 +0300 From: Lev Serebryakov <lev@serebryakov.spb.ru> To: freebsd-usb@freebsd.org Subject: struct usb_config: pass custom parameter to callback? Message-ID: <1431122664.20101112180144@serebryakov.spb.ru>
next in thread | raw e-mail | index | archive | help
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? --=20 // Black Lion AKA Lev Serebryakov <lev@serebryakov.spb.ru>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1431122664.20101112180144>