USB_GADGET_REGISTER_(9) | Kernel Mode Gadget API | USB_GADGET_REGISTER_(9) |
NAME¶
usb_gadget_register_driver - register a gadget driver
SYNOPSIS¶
int usb_gadget_register_driver(struct usb_gadget_driver * driver);
ARGUMENTS¶
driver
the driver being registered
CONTEXT¶
can sleep
DESCRIPTION¶
Call this in your gadget driver´s module initialization function, to tell the underlying usb controller driver about your driver. The driver´s bind function will be called to bind it to a gadget before this registration call returns. It´s expected that the bind functions will be in init sections.
AUTHOR¶
David Brownell <dbrownell@users.sourceforge.net>
Author.
COPYRIGHT¶
April 2023 | Kernel Hackers Manual 2.6. |