1DRIVER_FIND_DEVICE(9)    Device drivers infrastructure   DRIVER_FIND_DEVICE(9)
2
3
4

NAME

6       driver_find_device - device iterator for locating a particular device.
7

SYNOPSIS

9       struct device * driver_find_device(struct device_driver * drv,
10                                          struct device * start, void * data,
11                                          int (*match) (struct device *dev, void *data));
12

ARGUMENTS

14       drv
15           The device's driver
16
17       start
18           Device to begin with
19
20       data
21           Data to pass to match function
22
23       match
24           Callback function to check device
25

DESCRIPTION

27       This is similar to the driver_for_each_device function above, but it
28       returns a reference to a device that is 'found' for later use, as
29       determined by the match callback.
30
31       The callback should return 0 if the device doesn't match and non-zero
32       if it does. If the callback returns non-zero, this function will return
33       to the caller and not iterate over any more devices.
34
36Kernel Hackers Manual 3.10         June 2019             DRIVER_FIND_DEVICE(9)
Impressum