'\" t .\" Title: usb_register_device_driver .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: USB Core APIs .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "USB_REGISTER_DEVICE_" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "USB Core APIs" .\" ----------------------------------------------------------------- .\" * 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_register_device_driver \- register a USB device (not interface) driver .SH "SYNOPSIS" .HP \w'int\ usb_register_device_driver('u .BI "int usb_register_device_driver(struct\ usb_device_driver\ *\ " "new_udriver" ", struct\ module\ *\ " "owner" ");" .SH "ARGUMENTS" .PP \fInew_udriver\fR .RS 4 USB operations for the device driver .RE .PP \fIowner\fR .RS 4 module owner of this driver\&. .RE .SH "DESCRIPTION" .PP Registers a USB device driver with the USB core\&. The list of unattached devices will be rescanned whenever a new driver is added, allowing the new driver to attach to any recognized devices\&. .SH "RETURN" .PP A negative error code on failure and 0 on success\&. .SH "COPYRIGHT" .br