device_bind_driver(9)

device_bind_driver9

Bind a driver to one device.

Usage

int device_bind_driver(struct device * dev);

Arguments

dev

device.

Overview

Allow manual attachment of a driver to a device. Caller must have already set dev->driver.

Note that this does not modify the bus reference count nor take the bus's rwsem. Please verify those are accounted for before calling this. (It is ok to call with no other effort from a driver's probe method.)

This function must be called with the device lock held.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.