'\" t .\" Title: bio_associate_current .\" 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_ASSOCIATE_CURREN" "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_associate_current \- associate a bio with \fBcurrent\fR .SH "SYNOPSIS" .HP \w'int\ bio_associate_current('u .BI "int bio_associate_current(struct\ bio\ *\ " "bio" ");" .SH "ARGUMENTS" .PP \fIstruct bio * bio\fR .RS 4 target bio .RE .SH "DESCRIPTION" .PP Associate \fIbio\fR with \fBcurrent\fR if it hasn\*(Aqt been associated yet\&. Block layer will treat \fIbio\fR as if it were issued by \fBcurrent\fR no matter which task actually issues it\&. .PP This function takes an extra reference of \fItask\fR\*(Aqs io_context and blkcg which will be put when \fIbio\fR is released\&. The caller must own \fIbio\fR, ensure \fBcurrent\-\fR>io_context exists, and is responsible for synchronizing calls to this function\&. .SH "COPYRIGHT" .br