.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "USB_IFNUM_TO_IF" "" "06 October 2005" "" "" .SH NAME usb_ifnum_to_if \- get the interface object with a given interface number (usbcore-internal) .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct usb_interface * usb_ifnum_to_if (struct usb_device * \fIdev\fB, unsigned \fIifnum\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR the device whose current configuration is considered .TP \fB\fIifnum\fB\fR the desired interface .SH "DESCRIPTION" .PP This walks the device descriptor for the currently active configuration and returns a pointer to the interface with that particular interface number, or null. .PP Note that configuration descriptors are not required to assign interface numbers sequentially, so that it would be incorrect to assume that the first interface in that descriptor corresponds to interface zero. This routine helps device drivers avoid such mistakes. However, you should make sure that you do the right thing with any alternate settings available for this interfaces.