table of contents
other versions
BIO_ALLOC_PAGES(9) | The Linux VFS | BIO_ALLOC_PAGES(9) |
NAME¶
bio_alloc_pages - allocates a single page for each bvec in a bio
SYNOPSIS¶
int bio_alloc_pages(struct bio * bio, gfp_t gfp_mask);
ARGUMENTS¶
struct bio * bio
bio to allocate pages for
gfp_t gfp_mask
flags for allocation
DESCRIPTION¶
Allocates pages up to bio->bi_vcnt.
Returns 0 on success, -ENOMEM on failure. On failure, any allocated pages are freed.
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |