'\" t .\" Title: bio_endio .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "BIO_ENDIO" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "The Linux VFS" .\" ----------------------------------------------------------------- .\" * 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" bio_endio \- end I/O on a bio .SH "SYNOPSIS" .HP \w'void\ bio_endio('u .BI "void bio_endio(struct\ bio\ *\ " "bio" ");" .SH "ARGUMENTS" .PP \fIstruct bio * bio\fR .RS 4 bio .RE .SH "DESCRIPTION" .PP \fBbio_endio\fR will end I/O on the whole bio\&. \fBbio_endio\fR is the preferred way to end I/O on a bio\&. No one should call \fBbi_end_io\fR directly on a bio unless they own it and thus know that it has an end_io function\&. .PP \fBbio_endio\fR can be called several times on a bio that has been chained using \fBbio_chain\fR\&. The \->\fBbi_end_io\fR function will only be called the last time\&. At this point the BLK_TA_COMPLETE tracing event will be generated if BIO_TRACE_COMPLETION is set\&. .SH "COPYRIGHT" .br