1SUBSYS_DEV_ITER_INIT(9) Device drivers infrastructure SUBSYS_DEV_ITER_INIT(9)
2
3
4
6 subsys_dev_iter_init - initialize subsys device iterator
7
9 void subsys_dev_iter_init(struct subsys_dev_iter * iter,
10 struct bus_type * subsys,
11 struct device * start,
12 const struct device_type * type);
13
15 iter
16 subsys iterator to initialize
17
18 subsys
19 the subsys we wanna iterate over
20
21 start
22 the device to start iterating from, if any
23
24 type
25 device_type of the devices to iterate over, NULL for all
26
28 Initialize subsys iterator iter such that it iterates over devices of
29 subsys. If start is set, the list iteration will start there, otherwise
30 if it is NULL, the iteration starts at the beginning of the list.
31
33Kernel Hackers Manual 3.10 June 2019 SUBSYS_DEV_ITER_INIT(9)