module_usb_driver
Prev | Chapter 4. Host-Side Data Types and Macros | Next

## Name

module_usb_driver — Helper macro for registering a USB driver

## Synopsis

`module_usb_driver (` | __usb_driver`)`;

## Arguments

`__usb_driver`

  usb_driver struct

## Description

Helper macro for USB drivers which do not do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces `module_init` and `module_exit`

Prev | Up | Next
struct usb_class_driver | Home | struct urb