---
name: "bio_map_kern"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/bio_map_kern"
---

# bio\_map\_kern(9)

map kernel address into bio

## 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

*q*

the struct request\_queue 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.

## COPYRIGHT
