.\" 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_UNREGISTER_WAIT" "" "06 October 2005" "" "" .SH NAME device_unregister_wait \- Unregister device and wait for it to be freed. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void device_unregister_wait (struct device * \fIdev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR Device to unregister. .SH "DESCRIPTION" .PP For the cases where the caller needs to wait for all references to be dropped from the device before continuing (e.g. modules with statically allocated devices), this function uses a completion struct to wait, along with a matching \fBcomplete\fR in \fBdevice_release\fR above.