---
name: "bio_map_user"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/bio_map_user"
---

# bio\_map\_user(9)

map user address into bio

## NAME

bio\_map\_user - map user address into bio

## SYNOPSIS

**struct bio \* bio\_map\_user(struct request\_queue \*** *q***, struct block\_device \*** *bdev***, unsigned long** *uaddr***, unsigned int** *len***, int** *write\_to\_vm***, gfp\_t** *gfp\_mask***);**

## ARGUMENTS

*q*

the struct request\_queue for the bio

*bdev*

destination block device

*uaddr*

start of user address

*len*

length in bytes

*write\_to\_vm*

bool indicating writing to pages or not

*gfp\_mask*

memory allocation flags

## DESCRIPTION

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

## COPYRIGHT
