1SUBSYS_FIND_DEVICE_B(9) Device drivers infrastructure SUBSYS_FIND_DEVICE_B(9)
2
3
4
6 subsys_find_device_by_id - find a device with a specific enumeration
7 number
8
10 struct device * subsys_find_device_by_id(struct bus_type * subsys,
11 unsigned int id,
12 struct device * hint);
13
15 subsys
16 subsystem
17
18 id
19 index 'id' in struct device
20
21 hint
22 device to check first
23
25 Check the hint's next object and if it is a match return it directly,
26 otherwise, fall back to a full list search. Either way a reference for
27 the returned object is taken.
28
30Kernel Hackers Manual 3.10 June 2019 SUBSYS_FIND_DEVICE_B(9)