Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > 888a2f3d4ea212b694328c0525364729 > files > 2859

kernel-doc-3.19.8-100.fc20.noarch.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>generic_pipe_buf_steal</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Filesystems API"><link rel="up" href="pipes.html" title="Chapter&#160;8.&#160;pipes API"><link rel="prev" href="API-struct-pipe-inode-info.html" title="struct pipe_inode_info"><link rel="next" href="API-generic-pipe-buf-get.html" title="generic_pipe_buf_get"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">generic_pipe_buf_steal</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-pipe-inode-info.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;8.&#160;pipes API</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-generic-pipe-buf-get.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-generic-pipe-buf-steal"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>generic_pipe_buf_steal &#8212; 
  attempt to take ownership of a <span class="structname">pipe_buffer</span>
 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">generic_pipe_buf_steal </b>(</code></td><td>struct pipe_inode_info * <var class="pdparam">pipe</var>, </td></tr><tr><td>&#160;</td><td>struct pipe_buffer * <var class="pdparam">buf</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp322181708"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>pipe</code></em></span></dt><dd><p>
     the pipe that the buffer belongs to
    </p></dd><dt><span class="term"><em class="parameter"><code>buf</code></em></span></dt><dd><p>
     the buffer to attempt to steal
    </p></dd></dl></div></div><div class="refsect1"><a name="idp322184356"></a><h2>Description</h2><p>
   This function attempts to steal the <span class="structname">struct page</span> attached to
   <em class="parameter"><code>buf</code></em>. 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.
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-pipe-inode-info.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="pipes.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-generic-pipe-buf-get.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct pipe_inode_info</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">generic_pipe_buf_get</span></td></tr></table></div></body></html>