bio_alloc_pages(9)

bio_alloc_pages9

Allocates a single page for each bvec in a bio

Usage

int bio_alloc_pages(struct bio * bio, gfp_t gfp_mask);

Arguments

bio

bio to allocate pages for

gfp_mask

flags for allocation

Overview

Allocates pages up to bio->bi_vcnt.

Returns 0 on success, -ENOMEM on failure. On failure, any allocated pages are freed.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.