---
name: "bio_copy_kern"
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_copy_kern"
---

# bio\_copy\_kern(9)

copy kernel address into bio

## NAME

bio\_copy\_kern - copy kernel address into bio

## SYNOPSIS

**struct bio \* bio\_copy\_kern(struct request\_queue \*** *q***, void \*** *data***, unsigned int** *len***, gfp\_t** *gfp\_mask***, int** *reading***);**

## ARGUMENTS

*q*

the struct request\_queue for the bio

*data*

pointer to buffer to copy

*len*

length in bytes

*gfp\_mask*

allocation flags for bio and page allocation

*reading*

data direction is READ

## DESCRIPTION

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

## COPYRIGHT
