'\" t .\" Title: usb_composite_probe .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Kernel Mode Gadget API .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "USB_COMPOSITE_PROBE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Kernel Mode Gadget API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" usb_composite_probe \- register a composite driver .SH "SYNOPSIS" .HP \w'int\ usb_composite_probe('u .BI "int usb_composite_probe(struct\ usb_composite_driver\ *\ " "driver" ");" .SH "ARGUMENTS" .PP \fIdriver\fR .RS 4 the driver to register .RE .SH "CONTEXT" .PP single threaded during gadget setup .SH "DESCRIPTION" .PP 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\*(Aqs \fIbind\fR method, which does all the work of setting up the driver to match the hardware\&. .PP On successful return, the gadget is ready to respond to requests from the host, unless one of its components invokes \fBusb_gadget_disconnect\fR while it was binding\&. That would usually be done in order to wait for some userspace participation\&. .SH "AUTHOR" .PP \fBDavid Brownell\fR <\&dbrownell@users.sourceforge.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br