.\" 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 "BLK_CLEANUP_QUEUE" "" "06 October 2005" "" ""
.SH NAME
blk_cleanup_queue \- release a request_queue_t when it is no longer needed
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void blk_cleanup_queue (request_queue_t * \fIq\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIq\fB\fR
the request queue to be released
.SH "DESCRIPTION"
.PP
blk_cleanup_queue is the pair to \fBblk_init_queue\fR or
\fBblk_queue_make_request\fR\&. It should be called when a request queue is
being released; typically when a block device is being de-registered.
Currently, its primary task it to free all the &struct request
structures that were allocated to the queue and the queue itself.
.SH "CAVEAT"
.PP
Hopefully the low level driver will have finished any
outstanding requests first...