Newer
Older
ubix2 / doc / html / kern__descrip_8c.html
@reddawg reddawg on 12 Dec 2006 16 KB Changes
<!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/kern_descrip.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>kern_descrip.c File Reference</h1><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="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="kprintf_8h-source.html">lib/kprintf.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="endtask_8h-source.html">ubixos/endtask.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="kmalloc_8h-source.html">lib/kmalloc.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="assert_8h-source.html">assert.h</a>&gt;</code><br>

<p>
<a href="kern__descrip_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="kern__descrip_8c.html#ec14600d2aa9db1288f00704ba3a55d7">close</a> (struct <a class="el" href="structthread.html">thread</a> *td, struct <a class="el" href="structclose__args.html">close_args</a> *uap)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="kern__descrip_8c.html#9c93ac280b559128027746bda7c5d6d4">falloc</a> (struct <a class="el" href="structthread.html">thread</a> *td, struct <a class="el" href="structfile.html">file</a> **resultfp, int *resultfd)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="kern__descrip_8c.html#4c1102e9a5b5c2be0c5e16d9b974a1a3">fcntl</a> (struct <a class="el" href="structthread.html">thread</a> *td, struct <a class="el" href="structfcntl__args.html">fcntl_args</a> *uap)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="kern__descrip_8c.html#7c76b4ddffdfc9064786782334a40291">fstat</a> (struct <a class="el" href="structthread.html">thread</a> *td, struct <a class="el" href="structfstat__args.html">fstat_args</a> *uap)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="kern__descrip_8c.html#c26938ed109edd82077382276bc8258c">getdtablesize</a> (struct <a class="el" href="structthread.html">thread</a> *td, struct <a class="el" href="structgetdtablesize__args.html">getdtablesize_args</a> *uap)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return data table size  <a href="#c26938ed109edd82077382276bc8258c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="kern__descrip_8c.html#14e228d6e5391a882d3b20ff2466b2ac">getfd</a> (struct <a class="el" href="structthread.html">thread</a> *td, struct <a class="el" href="structfile.html">file</a> **fp, int fd)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">get pointer to file fd in specified thread  <a href="#14e228d6e5391a882d3b20ff2466b2ac"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="kern__descrip_8c.html#899127227d8b9c9da3bcccc32332c749">ioctl</a> (struct <a class="el" href="structthread.html">thread</a> *td, struct <a class="el" href="structioctl__args.html">ioctl_args</a> *uap)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ioctl functionality not implimented yet  <a href="#899127227d8b9c9da3bcccc32332c749"></a><br></td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="ec14600d2aa9db1288f00704ba3a55d7"></a><!-- doxytag: member="kern_descrip.c::close" ref="ec14600d2aa9db1288f00704ba3a55d7" args="(struct thread *td, struct close_args *uap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int close           </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="structclose__args.html">close_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>

<p>
Definition at line <a class="el" href="kern__descrip_8c-source.html#l00090">90</a> of file <a class="el" href="kern__descrip_8c-source.html">kern_descrip.c</a>.
<p>
References <a class="el" href="sysproto_8h-source.html#l00109">close_args::fd</a>, <a class="el" href="kmalloc_8c-source.html#l00351">kfree()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="thread_8h-source.html#l00039">thread::o_files</a>, and <a class="el" href="thread_8h-source.html#l00038">thread::td_retval</a>.
</div>
</div><p>
<a class="anchor" name="9c93ac280b559128027746bda7c5d6d4"></a><!-- doxytag: member="kern_descrip.c::falloc" ref="9c93ac280b559128027746bda7c5d6d4" args="(struct thread *td, struct file **resultfp, int *resultfd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int falloc           </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="structfile.html">file</a> **&nbsp;</td>
          <td class="paramname"> <em>resultfp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>resultfd</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>

<p>
Definition at line <a class="el" href="kern__descrip_8c-source.html#l00067">67</a> of file <a class="el" href="kern__descrip_8c-source.html">kern_descrip.c</a>.
<p>
References <a class="el" href="kmalloc_8c-source.html#l00247">kmalloc()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, and <a class="el" href="thread_8h-source.html#l00039">thread::o_files</a>.
<p>
Referenced by <a class="el" href="pipe_8c-source.html#l00041">pipe()</a>, and <a class="el" href="vfs_8c-source.html#l00148">sys_open()</a>.
</div>
</div><p>
<a class="anchor" name="4c1102e9a5b5c2be0c5e16d9b974a1a3"></a><!-- doxytag: member="kern_descrip.c::fcntl" ref="4c1102e9a5b5c2be0c5e16d9b974a1a3" args="(struct thread *td, struct fcntl_args *uap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int fcntl           </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="structfcntl__args.html">fcntl_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>

<p>
Definition at line <a class="el" href="kern__descrip_8c-source.html#l00039">39</a> of file <a class="el" href="kern__descrip_8c-source.html">kern_descrip.c</a>.
<p>
References <a class="el" href="sysproto_8h-source.html#l00088">fcntl_args::arg</a>, <a class="el" href="sysproto_8h-source.html#l00087">fcntl_args::cmd</a>, <a class="el" href="kern__descrip_8h-source.html#l00094">file::f_flag</a>, <a class="el" href="kern__descrip_8h-source.html#l00088">FCNTLFLAGS</a>, <a class="el" href="sysproto_8h-source.html#l00086">fcntl_args::fd</a>, <a class="el" href="kern__descrip_8h-source.html#l00090">FFLAGS</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="kern__descrip_8h-source.html#l00071">O_ACCMODE</a>, <a class="el" href="thread_8h-source.html#l00039">thread::o_files</a>, and <a class="el" href="thread_8h-source.html#l00038">thread::td_retval</a>.
</div>
</div><p>
<a class="anchor" name="7c76b4ddffdfc9064786782334a40291"></a><!-- doxytag: member="kern_descrip.c::fstat" ref="7c76b4ddffdfc9064786782334a40291" args="(struct thread *td, struct fstat_args *uap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int fstat           </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="structfstat__args.html">fstat_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>

<p>
Definition at line <a class="el" href="kern__descrip_8c-source.html#l00112">112</a> of file <a class="el" href="kern__descrip_8c-source.html">kern_descrip.c</a>.
<p>
References <a class="el" href="sched_8c-source.html#l00051">_current</a>, <a class="el" href="sysproto_8h-source.html#l00151">fstat_args::fd</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="thread_8h-source.html#l00039">thread::o_files</a>, <a class="el" href="sysproto_8h-source.html#l00152">fstat_args::sb</a>, <a class="el" href="kern__descrip_8h-source.html#l00127">stat::st_blksize</a>, <a class="el" href="kern__descrip_8h-source.html#l00108">stat::st_mode</a>, <a class="el" href="sched_8h-source.html#l00067">taskStruct::td</a>, and <a class="el" href="ap-boot_8S-source.html#l00052">x1000</a>.
</div>
</div><p>
<a class="anchor" name="c26938ed109edd82077382276bc8258c"></a><!-- doxytag: member="kern_descrip.c::getdtablesize" ref="c26938ed109edd82077382276bc8258c" args="(struct thread *td, struct getdtablesize_args *uap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int getdtablesize           </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="structgetdtablesize__args.html">getdtablesize_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>
return data table size 
<p>

<p>
Definition at line <a class="el" href="kern__descrip_8c-source.html#l00103">103</a> of file <a class="el" href="kern__descrip_8c-source.html">kern_descrip.c</a>.
<p>
References <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="thread_8h-source.html#l00035">O_FILES</a>, and <a class="el" href="thread_8h-source.html#l00038">thread::td_retval</a>.
</div>
</div><p>
<a class="anchor" name="14e228d6e5391a882d3b20ff2466b2ac"></a><!-- doxytag: member="kern_descrip.c::getfd" ref="14e228d6e5391a882d3b20ff2466b2ac" args="(struct thread *td, struct file **fp, int fd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int getfd           </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="structfile.html">file</a> **&nbsp;</td>
          <td class="paramname"> <em>fp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>fd</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>
get pointer to file fd in specified thread 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>returns fp </dd></dl>

<p>
Definition at line <a class="el" href="kern__descrip_8c-source.html#l00141">141</a> of file <a class="el" href="kern__descrip_8c-source.html">kern_descrip.c</a>.
<p>
References <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, and <a class="el" href="thread_8h-source.html#l00039">thread::o_files</a>.
<p>
Referenced by <a class="el" href="gen__calls_8c-source.html#l00125">read()</a>.
</div>
</div><p>
<a class="anchor" name="899127227d8b9c9da3bcccc32332c749"></a><!-- doxytag: member="kern_descrip.c::ioctl" ref="899127227d8b9c9da3bcccc32332c749" args="(struct thread *td, struct ioctl_args *uap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ioctl           </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="structioctl__args.html">ioctl_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>
ioctl functionality not implimented yet 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>NULL for now </dd></dl>

<p>
Definition at line <a class="el" href="kern__descrip_8c-source.html#l00131">131</a> of file <a class="el" href="kern__descrip_8c-source.html">kern_descrip.c</a>.
<p>
References <a class="el" href="thread_8h-source.html#l00038">thread::td_retval</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 08:52:14 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>