Newer
Older
UbixOS / doc / html / devfs_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/devfs/devfs.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_0af38c139db535004c17f658eecde1eb.html">devfs</a></div>
<h1>devfs.c File Reference</h1><code>#include &lt;<a class="el" href="devfs_8h-source.html">devfs/devfs.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="vfs_8h-source.html">vfs/vfs.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="device_8h-source.html">sys/device.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="spinlock_8h-source.html">ubixos/spinlock.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="kpanic_8h-source.html">ubixos/kpanic.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="lib_2string_8h-source.html">lib/string.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="kprintf_8h-source.html">lib/kprintf.h</a>&gt;</code><br>

<p>
Include dependency graph for devfs.c:<p><center><img src="devfs_8c__incl.png" border="0" usemap="#src/sys/devfs/devfs.c_map" alt=""></center>
<map name="src/sys/devfs/devfs.c_map">
<area href="devfs_8h.html" shape="rect" coords="224,111,336,137" alt="">
<area href="types_8h.html" shape="rect" coords="748,269,868,296" alt="">
<area href="vfs_8h.html" shape="rect" coords="242,237,319,264" alt="">
<area href="device_8h.html" shape="rect" coords="399,364,506,391" alt="">
<area href="spinlock_8h.html" shape="rect" coords="560,408,699,435" alt="">
<area href="kpanic_8h.html" shape="rect" coords="216,415,344,441" alt="">
<area href="kmalloc_8h.html" shape="rect" coords="399,465,506,492" alt="">
<area href="lib_2string_8h.html" shape="rect" coords="583,513,676,540" alt="">
<area href="kprintf_8h.html" shape="rect" coords="231,567,330,593" alt="">
<area href="file_8h.html" shape="rect" coords="412,111,492,137" alt="">
<area href="mount_8h.html" shape="rect" coords="579,161,680,188" alt="">
<area href="sysproto_8h.html" shape="rect" coords="394,263,511,289" alt="">
<area href="thread_8h.html" shape="rect" coords="578,269,682,296" alt="">
</map>

<p>
<a href="devfs_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="devfs_8c.html#c74c840a034d38b197e93bf883001d0d">devfs_init</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="devfs_8c.html#7b312bcbbf9c2386ec31ccc73f1c3c63">devfs_initialize</a> (struct <a class="el" href="structvfs__mountPoint.html">vfs_mountPoint</a> *mp)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="devfs_8c.html#d568bae84bef3691539f1b1d0f6a54b4">devfs_makeNode</a> (char *<a class="el" href="pci_8c.html#8f8f80d37794cde9472343e4487ba3eb">name</a>, <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> type, <a class="el" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> major, <a class="el" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> minor)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="devfs_8c.html#acec49d86336bd84c9feb9dea354381c">devfs_open</a> (char *<a class="el" href="structfile.html">file</a>, <a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *fd)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="devfs_8c.html#c6b73190c80703169760a556abafab22">devfs_read</a> (<a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *fd, char *data, long offset, long size)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="devfs_8c.html#ee16012227e22291c72d6f74258bb8a9">devfs_write</a> (<a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *fd, char *data, long offset, long size)</td></tr>

<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="devfs_8c.html#2858b8792372c6b992e3727e49fe0a8c">devfs_len</a> = 0x0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="spinlock_8h.html#a240e9404b4ede1e0d714610080d1176">spinLock_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="devfs_8c.html#0b9ed1fd2d4151d3e7e76f3a584e9b27">devfsSpinLock</a> = SPIN_LOCK_INITIALIZER</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="c74c840a034d38b197e93bf883001d0d"></a><!-- doxytag: member="devfs.c::devfs_init" ref="c74c840a034d38b197e93bf883001d0d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int devfs_init           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="devfs_8c-source.html#l00215">215</a> of file <a class="el" href="devfs_8c-source.html">devfs.c</a>.
<p>
References <a class="el" href="devfs_8c-source.html#l00050">devfs_initialize()</a>, <a class="el" href="devfs_8c-source.html#l00071">devfs_open()</a>, <a class="el" href="devfs_8c-source.html#l00114">devfs_read()</a>, <a class="el" href="devfs_8c-source.html#l00160">devfs_write()</a>, <a class="el" href="types_8h-source.html#l00036">NULL</a>, <a class="el" href="mount_8c-source.html#l00047">vfs_mount()</a>, <a class="el" href="vfs_8c-source.html#l00081">vfsRegisterFS()</a>, and <a class="el" href="ap-boot_8S-source.html#l00006">x1</a>.
<p>
Here is the call graph for this function:<p><center><img src="devfs_8c_c74c840a034d38b197e93bf883001d0d_cgraph.png" border="0" usemap="#devfs_8c_c74c840a034d38b197e93bf883001d0d_cgraph_map" alt=""></center>
<map name="devfs_8c_c74c840a034d38b197e93bf883001d0d_cgraph_map">
<area href="devfs_8c.html#7b312bcbbf9c2386ec31ccc73f1c3c63" shape="rect" coords="142,537,264,564" alt="">
<area href="devfs_8c.html#acec49d86336bd84c9feb9dea354381c" shape="rect" coords="490,107,588,133" alt="">
<area href="devfs_8c.html#c6b73190c80703169760a556abafab22" shape="rect" coords="491,208,587,235" alt="">
<area href="devfs_8c.html#ee16012227e22291c72d6f74258bb8a9" shape="rect" coords="154,157,252,184" alt="">
<area href="mount_8h.html#1255ebfdcd5f7048ffe187e836f8eb28" shape="rect" coords="158,487,248,513" alt="">
<area href="vfs_8h.html#8652b1ccbcf7d2a872c5781640f7d59a" shape="rect" coords="147,867,259,893" alt="">
<area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="334,537,408,564" alt="">
<area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="479,512,599,539" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="900,715,967,741" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="894,385,974,412" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="886,309,982,336" alt="">
<area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="478,563,600,589" alt="">
<area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="710,563,776,589" alt="">
<area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="704,613,782,640" alt="">
<area href="paging_8h.html#541f0b43826a40b9e978f5479080bb0e" shape="rect" coords="648,411,838,437" alt="">
<area href="device_8h.html#0002a4ec01ee11597c6751602f3e4c3d" shape="rect" coords="694,208,792,235" alt="">
<area href="lib_2string_8h.html#6f3dcb20ff11ff9db5904c3cfb61a38c" shape="rect" coords="710,5,776,32" alt="">
<area href="kmalloc_8h.html#aa9ed6886459604cf73ccdbf6410e487" shape="rect" coords="343,664,399,691" alt="">
<area href="lib_2string_8h.html#c38cd16373d98782e1465bd3d5aba470" shape="rect" coords="339,487,403,513" alt="">
<area href="mount_8h.html#7404fbe67653dda57672539b003deecd" shape="rect" coords="314,436,428,463" alt="">
<area href="vfs_8c.html#c49aa10a62b250834a055476c849b7b3" shape="rect" coords="328,867,414,893" alt="">
<area href="lib_2string_8h.html#e33b18edb618c656b9b795b9fce2316c" shape="rect" coords="331,968,411,995" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="7b312bcbbf9c2386ec31ccc73f1c3c63"></a><!-- doxytag: member="devfs.c::devfs_initialize" ref="7b312bcbbf9c2386ec31ccc73f1c3c63" args="(struct vfs_mountPoint *mp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void devfs_initialize           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structvfs__mountPoint.html">vfs_mountPoint</a> *&nbsp;</td>
          <td class="paramname"> <em>mp</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This is the initialized called by the vfs system when enabling devfs basically it allocates memory for the devfs module 
<p>
Definition at line <a class="el" href="devfs_8c-source.html#l00050">50</a> of file <a class="el" href="devfs_8c-source.html">devfs.c</a>.
<p>
References <a class="el" href="devfs_8h-source.html#l00046">devfs_info::deviceList</a>, <a class="el" href="mount_8h-source.html#l00041">vfs_mountPoint::fsInfo</a>, <a class="el" href="kpanic_8h-source.html#l00033">K_PANIC</a>, and <a class="el" href="kmalloc_8c-source.html#l00247">kmalloc()</a>.
<p>
Referenced by <a class="el" href="devfs_8c-source.html#l00215">devfs_init()</a>.
<p>
Here is the call graph for this function:<p><center><img src="devfs_8c_7b312bcbbf9c2386ec31ccc73f1c3c63_cgraph.png" border="0" usemap="#devfs_8c_7b312bcbbf9c2386ec31ccc73f1c3c63_cgraph_map" alt=""></center>
<map name="devfs_8c_7b312bcbbf9c2386ec31ccc73f1c3c63_cgraph_map">
<area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="176,122,251,148" alt="">
<area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="300,198,420,224" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="721,46,788,72" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="715,324,795,351" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="707,223,803,250" alt="">
<area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="299,71,421,98" alt="">
<area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="531,71,597,98" alt="">
<area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="525,172,603,199" alt="">
<area href="paging_8h.html#541f0b43826a40b9e978f5479080bb0e" shape="rect" coords="469,274,659,300" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="d568bae84bef3691539f1b1d0f6a54b4"></a><!-- doxytag: member="devfs.c::devfs_makeNode" ref="d568bae84bef3691539f1b1d0f6a54b4" args="(char *name, uInt8 type, uInt16 major, uInt16 minor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int devfs_makeNode           </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a>&nbsp;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a>&nbsp;</td>
          <td class="paramname"> <em>major</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a>&nbsp;</td>
          <td class="paramname"> <em>minor</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="devfs_8c-source.html#l00178">178</a> of file <a class="el" href="devfs_8c-source.html">devfs.c</a>.
<p>
References <a class="el" href="devfs_8c-source.html#l00044">devfs_len</a>, <a class="el" href="devfs_8c-source.html#l00041">devfsSpinLock</a>, <a class="el" href="devfs_8h-source.html#l00046">devfs_info::deviceList</a>, <a class="el" href="devfs_8h-source.html#l00040">devfs_devices::devMajor</a>, <a class="el" href="devfs_8h-source.html#l00041">devfs_devices::devMinor</a>, <a class="el" href="devfs_8h-source.html#l00042">devfs_devices::devName</a>, <a class="el" href="devfs_8h-source.html#l00039">devfs_devices::devType</a>, <a class="el" href="mount_8h-source.html#l00041">vfs_mountPoint::fsInfo</a>, <a class="el" href="kmalloc_8c-source.html#l00247">kmalloc()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="devfs_8h-source.html#l00037">devfs_devices::next</a>, <a class="el" href="devfs_8h-source.html#l00038">devfs_devices::prev</a>, <a class="el" href="spinlock_8c-source.html#l00056">spinLock()</a>, <a class="el" href="spinlock_8c-source.html#l00037">spinUnlock()</a>, <a class="el" href="kprintf_8c-source.html#l00051">sprintf()</a>, <a class="el" href="strlen_8S-source.html#l00004">strlen</a>, and <a class="el" href="mount_8c-source.html#l00132">vfs_findMount()</a>.
<p>
Referenced by <a class="el" href="fdc_8c-source.html#l00063">fdc_init()</a>, and <a class="el" href="hd_8c-source.html#l00039">initHardDisk()</a>.
<p>
Here is the call graph for this function:<p><center><img src="devfs_8c_d568bae84bef3691539f1b1d0f6a54b4_cgraph.png" border="0" usemap="#devfs_8c_d568bae84bef3691539f1b1d0f6a54b4_cgraph_map" alt=""></center>
<map name="devfs_8c_d568bae84bef3691539f1b1d0f6a54b4_cgraph_map">
<area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="214,233,288,260" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="780,56,847,83" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="774,233,854,260" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="766,436,862,463" alt="">
<area href="lib_2string_8h.html#c38cd16373d98782e1465bd3d5aba470" shape="rect" coords="219,563,283,589" alt="">
<area href="mount_8h.html#a8cc926aa9badb781158b6738b1b0f2d" shape="rect" coords="192,613,310,640" alt="">
<area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="359,284,479,311" alt="">
<area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="358,157,480,184" alt="">
<area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="590,157,656,184" alt="">
<area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="584,360,662,387" alt="">
<area href="paging_8h.html#541f0b43826a40b9e978f5479080bb0e" shape="rect" coords="528,309,718,336" alt="">
<area href="lib_2string_8h.html#6f3dcb20ff11ff9db5904c3cfb61a38c" shape="rect" coords="386,613,452,640" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="acec49d86336bd84c9feb9dea354381c"></a><!-- doxytag: member="devfs.c::devfs_open" ref="acec49d86336bd84c9feb9dea354381c" args="(char *file, fileDescriptor *fd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int devfs_open           </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *&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%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This is the open routine called by the vfs when a fopen or open is called within the user or kernel space file - this is the file node fd - this is the file descriptor<p>
This format will be changing down the road 
<p>
Definition at line <a class="el" href="devfs_8c-source.html#l00071">71</a> of file <a class="el" href="devfs_8c-source.html">devfs.c</a>.
<p>
References <a class="el" href="devfs_8c-source.html#l00044">devfs_len</a>, <a class="el" href="devfs_8c-source.html#l00041">devfsSpinLock</a>, <a class="el" href="device_8c-source.html#l00086">device_find()</a>, <a class="el" href="devfs_8h-source.html#l00046">devfs_info::deviceList</a>, <a class="el" href="device_8h-source.html#l00038">device_node::devInfo</a>, <a class="el" href="devfs_8h-source.html#l00040">devfs_devices::devMajor</a>, <a class="el" href="devfs_8h-source.html#l00041">devfs_devices::devMinor</a>, <a class="el" href="devfs_8h-source.html#l00042">devfs_devices::devName</a>, <a class="el" href="mount_8h-source.html#l00041">vfs_mountPoint::fsInfo</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="file_8h-source.html#l00051">fileDescriptorStruct::mode</a>, <a class="el" href="file_8h-source.html#l00049">fileDescriptorStruct::mp</a>, <a class="el" href="devfs_8h-source.html#l00037">devfs_devices::next</a>, <a class="el" href="device_8h-source.html#l00050">device_interface::size</a>, <a class="el" href="file_8h-source.html#l00053">fileDescriptorStruct::size</a>, <a class="el" href="spinlock_8c-source.html#l00056">spinLock()</a>, <a class="el" href="spinlock_8c-source.html#l00037">spinUnlock()</a>, <a class="el" href="file_8h-source.html#l00055">fileDescriptorStruct::start</a>, <a class="el" href="string_8c-source.html#l00032">strcmp()</a>, and <a class="el" href="ap-boot_8S-source.html#l00006">x1</a>.
<p>
Referenced by <a class="el" href="devfs_8c-source.html#l00215">devfs_init()</a>.
<p>
Here is the call graph for this function:<p><center><img src="devfs_8c_acec49d86336bd84c9feb9dea354381c_cgraph.png" border="0" usemap="#devfs_8c_acec49d86336bd84c9feb9dea354381c_cgraph_map" alt=""></center>
<map name="devfs_8c_acec49d86336bd84c9feb9dea354381c_cgraph_map">
<area href="device_8h.html#0002a4ec01ee11597c6751602f3e4c3d" shape="rect" coords="155,107,254,134" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="310,82,390,108" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="302,144,398,171" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="171,208,238,235" alt="">
<area href="lib_2string_8h.html#6f3dcb20ff11ff9db5904c3cfb61a38c" shape="rect" coords="171,259,238,286" alt="">
<area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="446,56,547,83" alt="">
<area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="731,107,830,134" alt="">
<area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="596,56,658,83" alt="">
<area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="707,6,854,32" alt="">
<area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="711,56,850,83" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="c6b73190c80703169760a556abafab22"></a><!-- doxytag: member="devfs.c::devfs_read" ref="c6b73190c80703169760a556abafab22" args="(fileDescriptor *fd, char *data, long offset, long size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int devfs_read           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *&nbsp;</td>
          <td class="paramname"> <em>fd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>size</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Function: int readDevFS(fileDescriptor *fd,char *data,long offset,long size) Description: Read File Into Data Notes: 
<p>
Definition at line <a class="el" href="devfs_8c-source.html#l00114">114</a> of file <a class="el" href="devfs_8c-source.html">devfs.c</a>.
<p>
References <a class="el" href="file_8h-source.html#l00057">fileDescriptorStruct::buffer</a>, <a class="el" href="device_8c-source.html#l00086">device_find()</a>, <a class="el" href="device_8h-source.html#l00038">device_node::devInfo</a>, <a class="el" href="devfs_8h-source.html#l00040">devfs_devices::devMajor</a>, <a class="el" href="devfs_8h-source.html#l00041">devfs_devices::devMinor</a>, <a class="el" href="device_8h-source.html#l00052">device_interface::info</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="structdevice__interface.html#6caf84418059d0121e76d873e305ddcb">device_interface::read</a>, and <a class="el" href="file_8h-source.html#l00055">fileDescriptorStruct::start</a>.
<p>
Referenced by <a class="el" href="devfs_8c-source.html#l00215">devfs_init()</a>.
<p>
Here is the call graph for this function:<p><center><img src="devfs_8c_c6b73190c80703169760a556abafab22_cgraph.png" border="0" usemap="#devfs_8c_c6b73190c80703169760a556abafab22_cgraph_map" alt=""></center>
<map name="devfs_8c_c6b73190c80703169760a556abafab22_cgraph_map">
<area href="device_8h.html#0002a4ec01ee11597c6751602f3e4c3d" shape="rect" coords="149,107,248,133" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="165,157,232,184" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="304,81,384,108" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="296,132,392,159" alt="">
<area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="440,56,541,83" alt="">
<area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="725,107,824,133" alt="">
<area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="591,56,652,83" alt="">
<area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="701,5,848,32" alt="">
<area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="705,56,844,83" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="ee16012227e22291c72d6f74258bb8a9"></a><!-- doxytag: member="devfs.c::devfs_write" ref="ee16012227e22291c72d6f74258bb8a9" args="(fileDescriptor *fd, char *data, long offset, long size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int devfs_write           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *&nbsp;</td>
          <td class="paramname"> <em>fd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>size</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="devfs_8c-source.html#l00160">160</a> of file <a class="el" href="devfs_8c-source.html">devfs.c</a>.
<p>
References <a class="el" href="file_8h-source.html#l00057">fileDescriptorStruct::buffer</a>, <a class="el" href="device_8c-source.html#l00086">device_find()</a>, <a class="el" href="device_8h-source.html#l00038">device_node::devInfo</a>, <a class="el" href="devfs_8h-source.html#l00040">devfs_devices::devMajor</a>, <a class="el" href="devfs_8h-source.html#l00041">devfs_devices::devMinor</a>, <a class="el" href="device_8h-source.html#l00052">device_interface::info</a>, <a class="el" href="structdevice__interface.html#6caf84418059d0121e76d873e305ddcb">device_interface::read</a>, <a class="el" href="file_8h-source.html#l00055">fileDescriptorStruct::start</a>, and <a class="el" href="structdevice__interface.html#f46913eec9f191290c82db23380bc5df">device_interface::write</a>.
<p>
Referenced by <a class="el" href="devfs_8c-source.html#l00215">devfs_init()</a>.
<p>
Here is the call graph for this function:<p><center><img src="devfs_8c_ee16012227e22291c72d6f74258bb8a9_cgraph.png" border="0" usemap="#devfs_8c_ee16012227e22291c72d6f74258bb8a9_cgraph_map" alt=""></center>
<map name="devfs_8c_ee16012227e22291c72d6f74258bb8a9_cgraph_map">
<area href="device_8h.html#0002a4ec01ee11597c6751602f3e4c3d" shape="rect" coords="152,107,251,133" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="307,81,387,108" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="299,132,395,159" alt="">
<area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="443,56,544,83" alt="">
<area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="728,107,827,133" alt="">
<area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="593,56,655,83" alt="">
<area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="704,5,851,32" alt="">
<area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="708,56,847,83" alt="">
</map>

</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="2858b8792372c6b992e3727e49fe0a8c"></a><!-- doxytag: member="devfs.c::devfs_len" ref="2858b8792372c6b992e3727e49fe0a8c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="devfs_8c.html#2858b8792372c6b992e3727e49fe0a8c">devfs_len</a> = 0x0<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="devfs_8c-source.html#l00044">44</a> of file <a class="el" href="devfs_8c-source.html">devfs.c</a>.
<p>
Referenced by <a class="el" href="devfs_8c-source.html#l00178">devfs_makeNode()</a>, and <a class="el" href="devfs_8c-source.html#l00071">devfs_open()</a>.
</div>
</div><p>
<a class="anchor" name="0b9ed1fd2d4151d3e7e76f3a584e9b27"></a><!-- doxytag: member="devfs.c::devfsSpinLock" ref="0b9ed1fd2d4151d3e7e76f3a584e9b27" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="spinlock_8h.html#a240e9404b4ede1e0d714610080d1176">spinLock_t</a> <a class="el" href="devfs_8c.html#0b9ed1fd2d4151d3e7e76f3a584e9b27">devfsSpinLock</a> = SPIN_LOCK_INITIALIZER<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="devfs_8c-source.html#l00041">41</a> of file <a class="el" href="devfs_8c-source.html">devfs.c</a>.
<p>
Referenced by <a class="el" href="devfs_8c-source.html#l00178">devfs_makeNode()</a>, and <a class="el" href="devfs_8c-source.html#l00071">devfs_open()</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:19:01 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>