1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct pipe_inode_info</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-buffer.html" title="struct pipe_buffer"><link rel="next" href="API-generic-pipe-buf-steal.html" title="generic_pipe_buf_steal"></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">struct pipe_inode_info</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-pipe-buffer.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-steal.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-pipe-inode-info"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct pipe_inode_info &#8212; 
2     a linux kernel pipe
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct pipe_inode_info {
5  struct mutex mutex;
6  wait_queue_head_t wait;
7  unsigned int nrbufs;
8  unsigned int curbuf;
9  unsigned int buffers;
10  unsigned int readers;
11  unsigned int writers;
12  unsigned int files;
13  unsigned int waiting_writers;
14  unsigned int r_counter;
15  unsigned int w_counter;
16  struct page * tmp_page;
17  struct fasync_struct * fasync_readers;
18  struct fasync_struct * fasync_writers;
19  struct pipe_buffer * bufs;
20};  </pre></div><div class="refsect1"><a name="idp1104132868"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">mutex</span></dt><dd><p>
21   mutex protecting the whole thing
22      </p></dd><dt><span class="term">wait</span></dt><dd><p>
23   reader/writer wait point in case of empty/full pipe
24      </p></dd><dt><span class="term">nrbufs</span></dt><dd><p>
25   the number of non-empty pipe buffers in this pipe
26      </p></dd><dt><span class="term">curbuf</span></dt><dd><p>
27   the current pipe buffer entry
28      </p></dd><dt><span class="term">buffers</span></dt><dd><p>
29   total number of buffers (should be a power of 2)
30      </p></dd><dt><span class="term">readers</span></dt><dd><p>
31   number of current readers of this pipe
32      </p></dd><dt><span class="term">writers</span></dt><dd><p>
33   number of current writers of this pipe
34      </p></dd><dt><span class="term">files</span></dt><dd><p>
35   number of struct file referring this pipe (protected by -&gt;i_lock)
36      </p></dd><dt><span class="term">waiting_writers</span></dt><dd><p>
37   number of writers blocked waiting for room
38      </p></dd><dt><span class="term">r_counter</span></dt><dd><p>
39   reader counter
40      </p></dd><dt><span class="term">w_counter</span></dt><dd><p>
41   writer counter
42      </p></dd><dt><span class="term">tmp_page</span></dt><dd><p>
43   cached released page
44      </p></dd><dt><span class="term">fasync_readers</span></dt><dd><p>
45   reader side fasync
46      </p></dd><dt><span class="term">fasync_writers</span></dt><dd><p>
47   writer side fasync
48      </p></dd><dt><span class="term">bufs</span></dt><dd><p>
49   the circular array of pipe buffers
50      </p></dd></dl></div></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-buffer.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-steal.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct pipe_buffer</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_steal</span></td></tr></table></div></body></html>
51