'\" t .\" Title: generic_pipe_buf_steal .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: pipes API .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "GENERIC_PIPE_BUF_STE" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "pipes API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" generic_pipe_buf_steal \- attempt to take ownership of a &pipe_buffer .SH "SYNOPSIS" .HP \w'int\ generic_pipe_buf_steal('u .BI "int generic_pipe_buf_steal(struct\ pipe_inode_info\ *\ " "pipe" ", struct\ pipe_buffer\ *\ " "buf" ");" .SH "ARGUMENTS" .PP \fIstruct pipe_inode_info * pipe\fR .RS 4 the pipe that the buffer belongs to .RE .PP \fIstruct pipe_buffer * buf\fR .RS 4 the buffer to attempt to steal .RE .SH "DESCRIPTION" .PP This function attempts to steal the struct page attached to \fIbuf\fR\&. 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\&. .SH "COPYRIGHT" .br