1DEVICE_ATTACH(9) Device drivers infrastructure DEVICE_ATTACH(9)
2
3
4
6 device_attach - try to attach device to a driver.
7
9 int device_attach(struct device * dev);
10
12 dev
13 device.
14
16 Walk the list of drivers that the bus has and call driver_probe_device
17 for each pair. If a compatible pair is found, break out and return.
18
19 Returns 1 if the device was bound to a driver; 0 if no matching driver
20 was found; -ENODEV if the device is not registered.
21
22 When called for a USB interface, dev->parent lock must be held.
23
25Kernel Hackers Manual 3.10 June 2019 DEVICE_ATTACH(9)