Scroll to navigation

BIO_MAP_KERN(9) The Linux VFS BIO_MAP_KERN(9)

NAME

bio_map_kern - map kernel address into bio

SYNOPSIS

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

ARGUMENTS

struct request_queue * q

the struct request_queue for the bio

void * data

pointer to buffer to map

unsigned int len

length in bytes

gfp_t 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.

COPYRIGHT

July 2017 Kernel Hackers Manual 4.12