1USB_FIND_INTERFACE(9)            USB Core APIs           USB_FIND_INTERFACE(9)
2
3
4

NAME

6       usb_find_interface - find usb_interface pointer for driver and device
7

SYNOPSIS

9       struct usb_interface * usb_find_interface(struct usb_driver * drv,
10                                                 int minor);
11

ARGUMENTS

13       drv
14           the driver whose current configuration is considered
15
16       minor
17           the minor number of the desired device
18

DESCRIPTION

20       This walks the bus device list and returns a pointer to the interface
21       with the matching minor and driver. Note, this only works for devices
22       that share the USB major number.
23

RETURN

25       A pointer to the interface with the matching major and minor.
26
28Kernel Hackers Manual 3.10         June 2019             USB_FIND_INTERFACE(9)
Impressum