.\" 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 "DRIVER_ATTACH" "" "06 October 2005" "" ""
.SH NAME
driver_attach \- try to bind driver to devices.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void driver_attach (struct device_driver * \fIdrv\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdrv\fB\fR
driver.
.SH "DESCRIPTION"
.PP
Walk the list of devices that the bus has on it and try to match
the driver with each one.
If \fBbus_match\fR returns 0 and the \fIdev\fR->driver is set, we've found
a compatible pair.
.PP
Note that we ignore the -ENODEV error from \fBbus_match\fR, since it's
perfectly valid for a driver not to bind to any devices.