1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>iter_file_splice_write</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="splice.html" title="Chapter 7. splice API"><link rel="prev" href="API-splice-from-pipe.html" title="splice_from_pipe"><link rel="next" href="API-generic-splice-sendpage.html" title="generic_splice_sendpage"></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">iter_file_splice_write</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-splice-from-pipe.html">Prev</a> </td><th width="60%" align="center">Chapter 7. splice API</th><td width="20%" align="right"> <a accesskey="n" href="API-generic-splice-sendpage.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-iter-file-splice-write"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>iter_file_splice_write — 2 splice data from a pipe to a file 3 </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">ssize_t <b class="fsfunc">iter_file_splice_write </b>(</code></td><td>struct pipe_inode_info * <var class="pdparam">pipe</var>, </td></tr><tr><td> </td><td>struct file * <var class="pdparam">out</var>, </td></tr><tr><td> </td><td>loff_t * <var class="pdparam">ppos</var>, </td></tr><tr><td> </td><td>size_t <var class="pdparam">len</var>, </td></tr><tr><td> </td><td>unsigned int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1104071180"></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> 4 pipe info 5 </p></dd><dt><span class="term"><em class="parameter"><code>out</code></em></span></dt><dd><p> 6 file to write to 7 </p></dd><dt><span class="term"><em class="parameter"><code>ppos</code></em></span></dt><dd><p> 8 position in <em class="parameter"><code>out</code></em> 9 </p></dd><dt><span class="term"><em class="parameter"><code>len</code></em></span></dt><dd><p> 10 number of bytes to splice 11 </p></dd><dt><span class="term"><em class="parameter"><code>flags</code></em></span></dt><dd><p> 12 splice modifier flags 13 </p></dd></dl></div></div><div class="refsect1"><a name="idp1104077164"></a><h2>Description</h2><p> 14 Will either move or copy pages (determined by <em class="parameter"><code>flags</code></em> options) from 15 the given pipe inode to the given file. 16 This one is ->write_iter-based. 17</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-splice-from-pipe.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="splice.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-generic-splice-sendpage.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">splice_from_pipe</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">generic_splice_sendpage</span></td></tr></table></div></body></html> 18