Newer
Older
UbixOS / doc / html / pipe_8c.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>UbixOS V2: src/sys/kernel/pipe.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="dir_897b6a2d7bab147dd1db58381aad3984.html">src</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_832905b1f7f5feaf61a306b40c0ac817.html">sys</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_7efffd2b1fae7bb6f2aa85845c863494.html">kernel</a></div>
<h1>pipe.c File Reference</h1><code>#include &lt;<a class="el" href="types_8h-source.html">ubixos/types.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="sysproto_8h-source.html">sys/sysproto.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="thread_8h-source.html">sys/thread.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="pipe_8h-source.html">sys/pipe.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="kern__descrip_8h-source.html">sys/kern_descrip.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="kprintf_8h-source.html">lib/kprintf.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="assert_8h-source.html">assert.h</a>&gt;</code><br>

<p>
Include dependency graph for pipe.c:<p><center><img src="pipe_8c__incl.png" border="0" usemap="#src/sys/kernel/pipe.c_map" alt=""></center>
<map name="src/sys/kernel/pipe.c_map">
<area href="types_8h.html" shape="rect" coords="732,145,852,172" alt="">
<area href="sysproto_8h.html" shape="rect" coords="409,157,527,184" alt="">
<area href="thread_8h.html" shape="rect" coords="577,196,681,223" alt="">
<area href="pipe_8h.html" shape="rect" coords="241,208,332,235" alt="">
<area href="kern__descrip_8h.html" shape="rect" coords="213,107,360,133" alt="">
<area href="kprintf_8h.html" shape="rect" coords="419,309,517,336" alt="">
<area href="assert_8h.html" shape="rect" coords="249,360,324,387" alt="">
<area href="__types_8h.html" shape="rect" coords="903,145,1007,172" alt="">
<area href="signal_8h.html" shape="rect" coords="579,145,680,172" alt="">
<area href="file_8h.html" shape="rect" coords="428,56,508,83" alt="">
</map>

<p>
<a href="pipe_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pipe_8c.html#cbd82ee803ba9432a295a8e2a0a3f249">pipe</a> (struct <a class="el" href="structthread.html">thread</a> *td, struct <a class="el" href="structpipe__args.html">pipe_args</a> *uap)</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="cbd82ee803ba9432a295a8e2a0a3f249"></a><!-- doxytag: member="pipe.c::pipe" ref="cbd82ee803ba9432a295a8e2a0a3f249" args="(struct thread *td, struct pipe_args *uap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int pipe           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structthread.html">thread</a> *&nbsp;</td>
          <td class="paramname"> <em>td</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structpipe__args.html">pipe_args</a> *&nbsp;</td>
          <td class="paramname"> <em>uap</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
HACK 
<p>
Definition at line <a class="el" href="pipe_8c-source.html#l00041">41</a> of file <a class="el" href="pipe_8c-source.html">pipe.c</a>.
<p>
References <a class="el" href="kern__descrip_8h-source.html#l00094">file::f_flag</a>, <a class="el" href="kern__descrip_8c-source.html#l00067">falloc()</a>, <a class="el" href="kern__descrip_8h-source.html#l00096">file::fd</a>, <a class="el" href="kern__descrip_8h-source.html#l00054">FREAD</a>, <a class="el" href="kern__descrip_8h-source.html#l00055">FWRITE</a>, and <a class="el" href="thread_8h-source.html#l00038">thread::td_retval</a>.
<p>
Here is the call graph for this function:<p><center><img src="pipe_8c_cbd82ee803ba9432a295a8e2a0a3f249_cgraph.png" border="0" usemap="#pipe_8c_cbd82ee803ba9432a295a8e2a0a3f249_cgraph_map" alt=""></center>
<map name="pipe_8c_cbd82ee803ba9432a295a8e2a0a3f249_cgraph_map">
<area href="kern__descrip_8h.html#434fb15226182b0ee879a5afe9a8c190" shape="rect" coords="107,348,165,375" alt="">
<area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="213,284,288,311" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="759,360,825,387" alt="">
<area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="337,183,457,210" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="752,208,832,235" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="744,56,840,83" alt="">
<area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="336,310,459,336" alt="">
<area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="568,310,635,336" alt="">
<area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="563,158,640,184" alt="">
<area href="paging_8h.html#541f0b43826a40b9e978f5479080bb0e" shape="rect" coords="507,107,696,134" alt="">
</map>

</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:23:52 2006 for UbixOS V2 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>