1USB_REGISTER_DRIVER(9) USB Core APIs USB_REGISTER_DRIVER(9)
2
3
4
6 usb_register_driver - register a USB interface driver
7
9 int usb_register_driver(struct usb_driver * new_driver,
10 struct module * owner, const char * mod_name);
11
13 new_driver
14 USB operations for the interface driver
15
16 owner
17 module owner of this driver.
18
19 mod_name
20 module name string
21
23 Registers a USB interface driver with the USB core. The list of
24 unattached interfaces will be rescanned whenever a new driver is added,
25 allowing the new driver to attach to any recognized interfaces. Returns
26 a negative error code on failure and 0 on success.
27
29 if you want your driver to use the USB major number, you must call
30 usb_register_dev to enable that functionality. This function no longer
31 takes care of that.
32
34Kernel Hackers Manual 2.6. November 2011 USB_REGISTER_DRIVER(9)