---
name: "struct_usb_class_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/struct_usb_class_driver"
---

# struct\_usb\_class\_driver(9)

identifies a USB driver that wants to use the USB major number

## NAME

struct\_usb\_class\_driver - identifies a USB driver that wants to use the USB major number

## SYNOPSIS

```
struct usb_class_driver {
  char * name;
  char *(* devnode) (struct device *dev, umode_t *mode);
  const struct file_operations * fops;
  int minor_base;
};
```

## MEMBERS

name

the usb class device name for this driver. Will show up in sysfs.

devnode

Callback to provide a naming hint for a possible device node to create.

fops

pointer to the struct file\_operations of this driver.

minor\_base

the start of the minor range for this driver.

## DESCRIPTION

This structure is used for the **usb\_register\_dev** and **usb\_unregister\_dev** functions, to consolidate a number of the parameters used for them.

## COPYRIGHT
