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

NAME

6       device_for_each_child - device child iterator.
7

SYNOPSIS

9       int device_for_each_child(struct device * parent, void * data,
10                                 int (*fn) (struct device *dev, void *data));
11

ARGUMENTS

13       parent
14           parent struct device.
15
16       data
17           data for the callback.
18
19       fn
20           function to be called for each device.
21

DESCRIPTION

23       Iterate over parent´s child devices, and call fn for each, passing it
24       data.
25
26       We check the return of fn each time. If it returns anything other than
27       0, we break out and return that value.
28
30Kernel Hackers Manual 2.6.         June 2019           DEVICE_FOR_EACH_CHIL(9)
Impressum