---
name: "generic_pipe_buf_steal"
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_steal"
---

# generic\_pipe\_buf\_steal(9)

attempt to take ownership of a pipe\_buffer

## NAME

generic\_pipe\_buf\_steal - attempt to take ownership of a pipe\_buffer

## SYNOPSIS

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

## ARGUMENTS

*pipe*

the pipe that the buffer belongs to

*buf*

the buffer to attempt to steal

## DESCRIPTION

This function attempts to steal the struct page attached to *buf*. If successful, this function returns 0 and returns with the page locked. The caller may then reuse the page for whatever he wishes; the typical use is insertion into a different file page cache.

## COPYRIGHT
