1STRUCT USB_CLASS_DRI(9) Host-Side Data Types and Macro STRUCT USB_CLASS_DRI(9)
2
3
4

NAME

6       struct_usb_class_driver - identifies a USB driver that wants to use the
7       USB major number
8

SYNOPSIS

10       struct usb_class_driver {
11         char * name;
12         char *(* devnode) (struct device *dev, mode_t *mode);
13         const struct file_operations * fops;
14         int minor_base;
15       };
16

MEMBERS

18       name
19           the usb class device name for this driver. Will show up in sysfs.
20
21       devnode
22           Callback to provide a naming hint for a possible device node to
23           create.
24
25       fops
26           pointer to the struct file_operations of this driver.
27
28       minor_base
29           the start of the minor range for this driver.
30

DESCRIPTION

32       This structure is used for the usb_register_dev and usb_unregister_dev
33       functions, to consolidate a number of the parameters used for them.
34
36Kernel Hackers Manual 2.6.       November 2011         STRUCT USB_CLASS_DRI(9)
Impressum