.\" 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_UNREGISTER" "" "06 October 2005" "" "" .SH NAME driver_unregister \- remove driver from system. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void driver_unregister (struct device_driver * \fIdrv\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdrv\fB\fR driver. .SH "DESCRIPTION" .PP Again, we pass off most of the work to the bus-level call. .PP Though, once that is done, we attempt to take \fIdrv\fR->unload_sem. This will block until the driver refcount reaches 0, and it is released. Only modular drivers will call this function, and we have to guarantee that it won't complete, letting the driver unload until all references are gone.