'\" t .\" Title: blk_fetch_request .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "BLK_FETCH_REQUEST" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "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_fetch_request \- fetch a request from a request queue .SH "SYNOPSIS" .HP \w'struct\ request\ *\ blk_fetch_request('u .BI "struct request * blk_fetch_request(struct\ request_queue\ *\ " "q" ");" .SH "ARGUMENTS" .PP \fIq\fR .RS 4 request queue to fetch a request from .RE .SH "DESCRIPTION" .PP Return the request at the top of \fIq\fR\&. The request is started on return and LLD can start processing it immediately\&. .SH "RETURN" .PP Pointer to the request at the top of \fIq\fR if available\&. Null otherwise\&. .SH "CONTEXT" .PP queue_lock must be held\&. .SH "COPYRIGHT" .br