1DEVICE_BIND_DRIVER(9) Device drivers infrastructure DEVICE_BIND_DRIVER(9)
2
3
4
6 device_bind_driver - bind a driver to one device.
7
9 int device_bind_driver(struct device * dev);
10
12 dev
13 device.
14
16 Allow manual attachment of a driver to a device. Caller must have
17 already set dev->driver.
18
19 Note that this does not modify the bus reference count nor take the
20 bus's rwsem. Please verify those are accounted for before calling this.
21 (It is ok to call with no other effort from a driver's probe method.)
22
23 This function must be called with the device lock held.
24
26Kernel Hackers Manual 3.10 June 2019 DEVICE_BIND_DRIVER(9)