1SUBSYS_DEV_ITER_NEXT(9) Device drivers infrastructure SUBSYS_DEV_ITER_NEXT(9)
2
3
4
6 subsys_dev_iter_next - iterate to the next device
7
9 struct device * subsys_dev_iter_next(struct subsys_dev_iter * iter);
10
12 iter
13 subsys iterator to proceed
14
16 Proceed iter to the next device and return it. Returns NULL if
17 iteration is complete.
18
19 The returned device is referenced and won't be released till iterator
20 is proceed to the next device or exited. The caller is free to do
21 whatever it wants to do with the device including calling back into
22 subsys code.
23
25Kernel Hackers Manual 3.10 June 2019 SUBSYS_DEV_ITER_NEXT(9)