other versions
- wheezy 3.2.78-1
USB_GADGET_PROBE_DRI(9) | Kernel Mode Gadget API | USB_GADGET_PROBE_DRI(9) |
NAME¶
usb_gadget_probe_driver - probe a gadget driverSYNOPSIS¶
int
usb_gadget_probe_driver(struct usb_gadget_driver * driver,
int (*bind) (struct usb_gadget *));
ARGUMENTS¶
driverthe driver being registered
bind
the driver's bind callback
CONTEXT¶
can sleepDESCRIPTION¶
Call this in your gadget driver's module initialization function, to tell the underlying usb controller driver about your driver. The bind() function will be called to bind it to a gadget before this registration call returns. It's expected that the bind() function will be in init sections.AUTHOR¶
David Brownell <dbrownell@users.sourceforge.net>Author.
COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |