1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><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 8. 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> </td><th width="60%" align="center">Chapter 8. pipes API</th><td width="20%" align="right"> <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 — 
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  struct user_struct * user;
21};  </pre></div><div class="refsect1"><a name="id-1.10.4.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">mutex</span></dt><dd><p>
22   mutex protecting the whole thing
23      </p></dd><dt><span class="term">wait</span></dt><dd><p>
24   reader/writer wait point in case of empty/full pipe
25      </p></dd><dt><span class="term">nrbufs</span></dt><dd><p>
26   the number of non-empty pipe buffers in this pipe
27      </p></dd><dt><span class="term">curbuf</span></dt><dd><p>
28   the current pipe buffer entry
29      </p></dd><dt><span class="term">buffers</span></dt><dd><p>
30   total number of buffers (should be a power of 2)
31      </p></dd><dt><span class="term">readers</span></dt><dd><p>
32   number of current readers of this pipe
33      </p></dd><dt><span class="term">writers</span></dt><dd><p>
34   number of current writers of this pipe
35      </p></dd><dt><span class="term">files</span></dt><dd><p>
36   number of struct file referring this pipe (protected by -&gt;i_lock)
37      </p></dd><dt><span class="term">waiting_writers</span></dt><dd><p>
38   number of writers blocked waiting for room
39      </p></dd><dt><span class="term">r_counter</span></dt><dd><p>
40   reader counter
41      </p></dd><dt><span class="term">w_counter</span></dt><dd><p>
42   writer counter
43      </p></dd><dt><span class="term">tmp_page</span></dt><dd><p>
44   cached released page
45      </p></dd><dt><span class="term">fasync_readers</span></dt><dd><p>
46   reader side fasync
47      </p></dd><dt><span class="term">fasync_writers</span></dt><dd><p>
48   writer side fasync
49      </p></dd><dt><span class="term">bufs</span></dt><dd><p>
50   the circular array of pipe buffers
51      </p></dd><dt><span class="term">user</span></dt><dd><p>
52   the user who created this pipe
53      </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> </td><td width="20%" align="center"><a accesskey="u" href="pipes.html">Up</a></td><td width="40%" align="right"> <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> </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_pipe_buf_steal</span></td></tr></table></div></body></html>
54