'\" t .\" Title: bio_add_page .\" 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_ADD_PAGE" "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_add_page \- attempt to add page to bio .SH "SYNOPSIS" .HP \w'int\ bio_add_page('u .BI "int bio_add_page(struct\ bio\ *\ " "bio" ", struct\ page\ *\ " "page" ", unsigned\ int\ " "len" ", unsigned\ int\ " "offset" ");" .SH "ARGUMENTS" .PP \fIstruct bio * bio\fR .RS 4 destination bio .RE .PP \fIstruct page * page\fR .RS 4 page to add .RE .PP \fIunsigned int len\fR .RS 4 vec entry length .RE .PP \fIunsigned int offset\fR .RS 4 vec entry offset .RE .SH "DESCRIPTION" .PP Attempt to add a page to the bio_vec maplist\&. This will only fail if either bio\->bi_vcnt == bio\->bi_max_vecs or it\*(Aqs a cloned bio\&. .SH "COPYRIGHT" .br