'\" t .\" Title: blk_peek_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_PEEK_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_peek_request \- peek at the top of a request queue .SH "SYNOPSIS" .HP \w'struct\ request\ *\ blk_peek_request('u .BI "struct request * blk_peek_request(struct\ request_queue\ *\ " "q" ");" .SH "ARGUMENTS" .PP \fIq\fR .RS 4 request queue to peek at .RE .SH "DESCRIPTION" .PP Return the request at the top of \fIq\fR\&. The returned request should be started using \fBblk_start_request\fR before LLD starts processing it\&. .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