usb_composite_register(9)

usb_composite_register9

Register a composite driver

Usage

int usb_composite_register(struct usb_composite_driver * driver);

Arguments

driver

the driver to register

Context

single threaded during gadget setup

Overview

This function is used to register drivers using the composite driver framework. The return value is zero, or a negative errno value. Those values normally come from the driver's bind method, which does all the work of setting up the driver to match the hardware.

On successful return, the gadget is ready to respond to requests from the host, unless one of its components invokes usb_gadget_disconnect while it was binding. That would usually be done in order to wait for some userspace participation.

Author

David Brownell <[email protected]>

Author.

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.