'\" t .\" Title: __blk_drain_queue .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "__BLK_DRAIN_QUEUE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Block Devices" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" __blk_drain_queue \- drain requests from request_queue .SH "SYNOPSIS" .HP \w'void\ __blk_drain_queue('u .BI "void __blk_drain_queue(struct\ request_queue\ *\ " "q" ", bool\ " "drain_all" ");" .SH "ARGUMENTS" .PP \fIq\fR .RS 4 queue to drain .RE .PP \fIdrain_all\fR .RS 4 whether to drain all requests or only the ones w/ ELVPRIV .RE .SH "DESCRIPTION" .PP Drain requests from \fIq\fR\&. If \fIdrain_all\fR is set, all requests are drained\&. If not, only ELVPRIV requests are drained\&. The caller is responsible for ensuring that no new requests which need to be drained are queued\&. .SH "COPYRIGHT" .br