'\" t .\" Title: struct usb_class_driver .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Host-Side Data Types and Macros .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "STRUCT USB_CLASS_DRI" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Host-Side Data Types and Macro" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_usb_class_driver \- identifies a USB driver that wants to use the USB major number .SH "SYNOPSIS" .sp .nf struct usb_class_driver { char * name; char *(* devnode) (struct device *dev, umode_t *mode); const struct file_operations * fops; int minor_base; }; .fi .SH "MEMBERS" .PP name .RS 4 the usb class device name for this driver\&. Will show up in sysfs\&. .RE .PP devnode .RS 4 Callback to provide a naming hint for a possible device node to create\&. .RE .PP fops .RS 4 pointer to the struct file_operations of this driver\&. .RE .PP minor_base .RS 4 the start of the minor range for this driver\&. .RE .SH "DESCRIPTION" .PP This structure is used for the \fBusb_register_dev\fR and \fBusb_unregister_dev\fR functions, to consolidate a number of the parameters used for them\&. .SH "COPYRIGHT" .br