usb_register_driver(9)

usb_register_driver9

Register a usb interface driver

Usage

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

Arguments

new_driver

USB operations for the interface driver

owner

module owner of this driver.

mod_name

module name string

Overview

Registers a USB interface driver with the USB core. The list of unattached interfaces will be rescanned whenever a new driver is added, allowing the new driver to attach to any recognized interfaces.

Return

A negative error code on failure and 0 on success.

Note

if you want your driver to use the USB major number, you must call usb_register_dev to enable that functionality. This function no longer takes care of that.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.