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

NAME

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

SYNOPSIS

9       struct device * device_find_child(struct device * parent, void * data,
10                                         int (*match) (struct device *dev, void *data));
11

ARGUMENTS

13       parent
14           parent struct device
15
16       data
17           Data to pass to match function
18
19       match
20           Callback function to check device
21

DESCRIPTION

23       This is similar to the device_for_each_child function above, but it
24       returns a reference to a device that is 'found' for later use, as
25       determined by the match callback.
26
27       The callback should return 0 if the device doesn't match and non-zero
28       if it does. If the callback returns non-zero and a reference to the
29       current device can be obtained, this function will return to the caller
30       and not iterate over any more devices.
31
33Kernel Hackers Manual 2.6.       November 2011            DEVICE_FIND_CHILD(9)
Impressum