---
name: "generic_pipe_buf_get"
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/generic_pipe_buf_get"
---

# generic\_pipe\_buf\_get(9)

get a reference to a struct pipe\_buffer

## NAME

generic\_pipe\_buf\_get - get a reference to a struct pipe\_buffer

## SYNOPSIS

**bool generic\_pipe\_buf\_get(struct pipe\_inode\_info \*** *pipe***, struct pipe\_buffer \*** *buf***);**

## ARGUMENTS

*pipe*

the pipe that the buffer belongs to

*buf*

the buffer to get a reference to

## DESCRIPTION

This function grabs an extra reference to *buf*. It's used in in the **tee** system call, when we duplicate the buffers in one pipe into another.

## COPYRIGHT
