'\" t .\" Title: bio_alloc_pages .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "BIO_ALLOC_PAGES" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "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_alloc_pages \- allocates a single page for each bvec in a bio .SH "SYNOPSIS" .HP \w'int\ bio_alloc_pages('u .BI "int bio_alloc_pages(struct\ bio\ *\ " "bio" ", gfp_t\ " "gfp_mask" ");" .SH "ARGUMENTS" .PP \fIbio\fR .RS 4 bio to allocate pages for .RE .PP \fIgfp_mask\fR .RS 4 flags for allocation .RE .SH "DESCRIPTION" .PP Allocates pages up to \fIbio\fR\->bi_vcnt\&. .PP Returns 0 on success, \-ENOMEM on failure\&. On failure, any allocated pages are freed\&. .SH "COPYRIGHT" .br