Name

bio_alloc — allocate a new bio, memory pool backed

Synopsis

struct bio * bio_alloc (gfp_t gfp_mask,
 int nr_iovecs);
 

Arguments

gfp_mask

allocation mask to use

nr_iovecs

number of iovecs

Description

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

RETURNS

Pointer to new bio on success, NULL on failure.