.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "DEVICE_ATTACH" "9" "09 October 2005" "" "" .SH NAME device_attach \- try to attach device to a driver. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int device_attach (struct device * \fIdev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR device. .SH "DESCRIPTION" .PP Walk the list of drivers that the bus has and call \fBdriver_probe_device\fR for each pair. If a compatible pair is found, break out and return. .PP Returns 1 if the device was bound to a driver; 0 if no matching device was found; error code otherwise.