1BIO_ALLOC_PAGES(9) The Linux VFS BIO_ALLOC_PAGES(9)
23
4
NAME
6bio_alloc_pages - allocates a single page for each bvec in a bio
7
SYNOPSIS
9int bio_alloc_pages(struct bio * bio, gfp_t gfp_mask);
10
ARGUMENTS
12bio
13bio to allocate pages for
1415
gfp_mask
16flags for allocation
17
DESCRIPTION
19Allocates pages up to bio->bi_vcnt.
2021
Returns 0 on success, -ENOMEM on failure. On failure, any allocated
22pages are freed.
23
COPYRIGHT
25Kernel Hackers Manual 3.10 June 2019 BIO_ALLOC_PAGES(9)