Name

bio_map_kern — map kernel address into bio

Synopsis

struct bio * bio_map_kern (request_queue_t * q,
 void * data,
 unsigned int len,
 gfp_t gfp_mask);
 

Arguments

q

the request_queue_t for the bio

data

pointer to buffer to map

len

length in bytes

gfp_mask

allocation flags for bio allocation

Description

Map the kernel address into a bio suitable for io to a block device. Returns an error pointer in case of error.