'\" t .\" Title: submit_bio .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "SUBMIT_BIO" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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" submit_bio \- submit a bio to the block device layer for I/O .SH "SYNOPSIS" .HP \w'void\ submit_bio('u .BI "void submit_bio(int\ " "rw" ", struct\ bio\ *\ " "bio" ");" .SH "ARGUMENTS" .PP \fIrw\fR .RS 4 whether to \fBREAD\fR or \fBWRITE\fR, or maybe to \fBREADA\fR (read ahead) .RE .PP \fIbio\fR .RS 4 The struct bio which describes the I/O .RE .SH "DESCRIPTION" .PP \fBsubmit_bio\fR is very similar in purpose to \fBgeneric_make_request\fR, and uses that function to do most of the work\&. Both are fairly rough interfaces; \fIbio\fR must be presetup and ready for I/O\&. .SH "COPYRIGHT" .br