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

NAME

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

SYNOPSIS

9       struct device * bus_find_device(struct bus_type * bus,
10                                       struct device * start, void * data,
11                                       int (*match) (struct device *dev, void *data));
12

ARGUMENTS

14       bus
15           bus type
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 bus_for_each_dev function above, but it returns
28       a reference to a device that is ´found´ for later use, as determined by
29       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 2.6.         June 2019                BUS_FIND_DEVICE(9)
Impressum