---
name: "generic_pipe_buf_map"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/generic_pipe_buf_map"
---

# generic\_pipe\_buf\_map(9)

virtually map a pipe buffer

## NAME

generic\_pipe\_buf\_map - virtually map a pipe buffer

## SYNOPSIS

**void \* generic\_pipe\_buf\_map(struct pipe\_inode\_info \*** *pipe***, struct pipe\_buffer \*** *buf***, int** *atomic***);**

## ARGUMENTS

*pipe*

the pipe that the buffer belongs to

*buf*

the buffer that should be mapped

*atomic*

whether to use an atomic map

## DESCRIPTION

This function returns a kernel virtual address mapping for the pipe\_buffer passed in *buf*. If *atomic* is set, an atomic map is provided and the caller has to be careful not to fault before calling the unmap function.

Note that this function occupies KM\_USER0 if *atomic* != 0.

## COPYRIGHT
