---
name: "usb_register_device_driver"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_register_device_driver"
---

# usb\_register\_device\_driver(9)

register a USB device (not interface) driver

## NAME

usb\_register\_device\_driver - register a USB device (not interface) driver

## SYNOPSIS

**int usb\_register\_device\_driver(struct usb\_device\_driver \*** *new\_udriver***, struct module \*** *owner***);**

## ARGUMENTS

*new\_udriver*

USB operations for the device driver

*owner*

module owner of this driver.

## DESCRIPTION

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.

## RETURN

A negative error code on failure and 0 on success.

## COPYRIGHT
