'\" t .\" Title: usb_find_interface .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: USB Core APIs .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "USB_FIND_INTERFACE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "USB Core APIs" .\" ----------------------------------------------------------------- .\" * 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" usb_find_interface \- find usb_interface pointer for driver and device .SH "SYNOPSIS" .HP \w'struct\ usb_interface\ *\ usb_find_interface('u .BI "struct usb_interface * usb_find_interface(struct\ usb_driver\ *\ " "drv" ", int\ " "minor" ");" .SH "ARGUMENTS" .PP \fIdrv\fR .RS 4 the driver whose current configuration is considered .RE .PP \fIminor\fR .RS 4 the minor number of the desired device .RE .SH "DESCRIPTION" .PP This walks the bus device list and returns a pointer to the interface with the matching minor and driver\&. Note, this only works for devices that share the USB major number\&. .SH "RETURN" .PP A pointer to the interface with the matching major and \fIminor\fR\&. .SH "COPYRIGHT" .br