1USB_REGISTER_DRIVER(9)           USB Core APIs          USB_REGISTER_DRIVER(9)
2
3
4

NAME

6       usb_register_driver - register a USB interface driver
7

SYNOPSIS

9       int usb_register_driver(struct usb_driver * new_driver,
10                               struct module * owner, const char * mod_name);
11

ARGUMENTS

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

DESCRIPTION

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.
26

RETURN

28       A negative error code on failure and 0 on success.
29

NOTE

31       if you want your driver to use the USB major number, you must call
32       usb_register_dev to enable that functionality. This function no longer
33       takes care of that.
34
36Kernel Hackers Manual 3.10         June 2019            USB_REGISTER_DRIVER(9)
Impressum