bio_kmalloc(9)

bio_kmalloc9

Allocate a bio for i/o using kmalloc

Usage

struct bio * bio_kmalloc(gfp_t gfp_mask, unsigned int nr_iovecs);

Arguments

gfp_mask

the GFP_ mask given to the slab allocator

nr_iovecs

number of iovecs to pre-allocate

Overview

Allocate a new bio with nr_iovecs bvecs. If gfp_mask contains __GFP_WAIT, the allocation is guaranteed to succeed.

Releases

2 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7

From linux-manual-3.2 3.2.78-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.