'\" t .\" Title: __blk_end_request .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "__BLK_END_REQUEST" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "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_end_request \- Helper function for drivers to complete the request\&. .SH "SYNOPSIS" .HP \w'bool\ __blk_end_request('u .BI "bool __blk_end_request(struct\ request\ *\ " "rq" ", int\ " "error" ", unsigned\ int\ " "nr_bytes" ");" .SH "ARGUMENTS" .PP \fIstruct request * rq\fR .RS 4 the request being processed .RE .PP \fIint error\fR .RS 4 \fB0\fR for success, < \fB0\fR for error .RE .PP \fIunsigned int nr_bytes\fR .RS 4 number of bytes to complete .RE .SH "DESCRIPTION" .PP Must be called with queue lock held unlike \fBblk_end_request\fR\&. .SH "RETURN" .PP \fBfalse\fR \- we are done with this request \fBtrue\fR \- still buffers pending for this request .SH "COPYRIGHT" .br