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

NAME

6       usb_for_each_dev - iterate over all USB devices in the system
7

SYNOPSIS

9       int usb_for_each_dev(void * data,
10                            int (*fn) (struct usb_device *, void *));
11

ARGUMENTS

13       data
14           data pointer that will be handed to the callback function
15
16       fn
17           callback function to be called for each USB device
18

DESCRIPTION

20       Iterate over all USB devices and call fn for each, passing it data. If
21       it returns anything other than 0, we break the iteration prematurely
22       and return that value.
23
25Kernel Hackers Manual 3.10         June 2019               USB_FOR_EACH_DEV(9)
Impressum