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

NAME

6       device_for_each_child_reverse - device child iterator in reversed
7       order.
8

SYNOPSIS

10       int device_for_each_child_reverse(struct device * parent, void * data,
11                                         int (*fn) (struct device *dev, void *data));
12

ARGUMENTS

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

DESCRIPTION

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