.\" 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_REGISTER" "" "06 October 2005" "" ""
.SH NAME
driver_register \- register driver with bus
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int driver_register (struct device_driver * \fIdrv\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdrv\fB\fR
driver to register
.SH "DESCRIPTION"
.PP
We pass off most of the work to the \fBbus_add_driver\fR call,
since most of the things we have to do deal with the bus
structures.
.PP
The one interesting aspect is that we initialize \fIdrv\fR->unload_sem
to a locked state here. It will be unlocked when the driver
reference count reaches 0.