centos man page for device_attach

Query: device_attach

OS: centos

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

DEVICE_ATTACH(9)					   Device drivers infrastructure					  DEVICE_ATTACH(9)

NAME
device_attach - try to attach device to a driver.
SYNOPSIS
int device_attach(struct device * dev);
ARGUMENTS
dev device.
DESCRIPTION
Walk the list of drivers that the bus has and call driver_probe_device for each pair. If a compatible pair is found, break out and return. Returns 1 if the device was bound to a driver; 0 if no matching driver was found; -ENODEV if the device is not registered. When called for a USB interface, dev->parent lock must be held.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 DEVICE_ATTACH(9)
Related Man Pages
device_attach(9) - debian
device_detach(9) - debian
driver(9) - debian
device_attach(9) - hpux
device_detach(9) - minix
Similar Topics in the Unix Linux Community
Failed to read from eventlog: 31: A device attached to the system is not functioning.