Newer
Older
UbixOS / doc / html / directory_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/ubixfs/directory.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_74196872fc832845f1a07f1162e5c554.html">ubixfs</a></div>
<h1>directory.c File Reference</h1><code>#include &lt;<a class="el" href="ubixfs_8h-source.html">ubixfs/ubixfs.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="file_8h-source.html">vfs/file.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="mount_8h-source.html">vfs/mount.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="kmalloc_8h-source.html">lib/kmalloc.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="lib_2string_8h-source.html">lib/string.h</a>&gt;</code><br>

<p>
Include dependency graph for directory.c:<p><center><img src="directory_8c__incl.png" border="0" usemap="#src/sys/ubixfs/directory.c_map" alt=""></center>
<map name="src/sys/ubixfs/directory.c_map">
<area href="ubixfs_8h.html" shape="rect" coords="391,5,511,32" alt="">
<area href="types_8h.html" shape="rect" coords="561,157,681,184" alt="">
<area href="file_8h.html" shape="rect" coords="252,107,332,133" alt="">
<area href="mount_8h.html" shape="rect" coords="400,157,501,184" alt="">
<area href="kmalloc_8h.html" shape="rect" coords="397,208,504,235" alt="">
<area href="kprintf_8h.html" shape="rect" coords="243,259,341,285" alt="">
<area href="lib_2string_8h.html" shape="rect" coords="245,309,339,336" alt="">
</map>

<p>
<a href="directory_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="directory_8c.html#756e1f497c4d9fed64ac0a2256f9fa46">addDirEntry</a> (struct <a class="el" href="structdirectoryEntry.html">directoryEntry</a> *dir, <a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *fd)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structdirectoryList.html">dirList_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="directory_8c.html#7cac3d485d20bce5cf642f767769dfcf">ubixFSLoadDir</a> (char *data)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="directory_8c.html#19ed96e270f8c904857e2fe1651ea325">ubixFSmkDir</a> (char *directory, <a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *fd)</td></tr>

<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structdirectoryList.html">dirList_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="directory_8c.html#c58a1f5b454f2ce5ce3619fd470583a2">dirList</a> = 0x0</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="756e1f497c4d9fed64ac0a2256f9fa46"></a><!-- doxytag: member="directory.c::addDirEntry" ref="756e1f497c4d9fed64ac0a2256f9fa46" args="(struct directoryEntry *dir, fileDescriptor *fd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int addDirEntry           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structdirectoryEntry.html">directoryEntry</a> *&nbsp;</td>
          <td class="paramname"> <em>dir</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%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="directory_8c-source.html#l00066">66</a> of file <a class="el" href="directory_8c-source.html">directory.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>, <a class="el" href="lib_2string_8h.html#e33b18edb618c656b9b795b9fce2316c">memcpy()</a>, <a class="el" href="file_8h-source.html#l00052">fileDescriptorStruct::offset</a>, <a class="el" href="ubixfs_8c-source.html#l00194">readUbixFS()</a>, <a class="el" href="file_8h-source.html#l00053">fileDescriptorStruct::size</a>, <a class="el" href="ubixfs_8c-source.html#l00232">writeUbixFS()</a>, and <a class="el" href="ap-boot_8S-source.html#l00052">x1000</a>.
<p>
Referenced by <a class="el" href="directory_8c-source.html#l00094">ubixFSmkDir()</a>.
<p>
Here is the call graph for this function:<p><center><img src="directory_8c_756e1f497c4d9fed64ac0a2256f9fa46_cgraph.png" border="0" usemap="#directory_8c_756e1f497c4d9fed64ac0a2256f9fa46_cgraph_map" alt=""></center>
<map name="directory_8c_756e1f497c4d9fed64ac0a2256f9fa46_cgraph_map">
<area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="331,208,405,235" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="897,81,964,108" alt="">
<area href="lib_2string_8h.html#e33b18edb618c656b9b795b9fce2316c" shape="rect" coords="169,125,249,152" alt="">
<area href="ubixfs_8h.html#3882cc85dc373eba13315dfb0da4c578" shape="rect" coords="160,68,259,95" alt="">
<area href="ubixfs_8h.html#ba0435c266346dd10ac3cbc68655b20c" shape="rect" coords="159,360,260,387" alt="">
<area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="476,309,596,336" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="891,385,971,412" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="883,284,979,311" alt="">
<area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="475,157,597,184" alt="">
<area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="707,107,773,133" alt="">
<area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="701,512,779,539" alt="">
<area href="paging_8h.html#541f0b43826a40b9e978f5479080bb0e" shape="rect" coords="645,309,835,336" alt="">
<area href="ubixfs_8h.html#d2880707d0f942f5119f946db4e13e4e" shape="rect" coords="311,411,425,437" alt="">
<area href="kmalloc_8h.html#aa9ed6886459604cf73ccdbf6410e487" shape="rect" coords="340,360,396,387" alt="">
<area href="lib_2string_8h.html#6f3dcb20ff11ff9db5904c3cfb61a38c" shape="rect" coords="335,461,401,488" alt="">
<area href="ubixfs_8h.html#99dfa2e54401fafb70357a6632c4ef10" shape="rect" coords="499,613,573,640" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="7cac3d485d20bce5cf642f767769dfcf"></a><!-- doxytag: member="directory.c::ubixFSLoadDir" ref="7cac3d485d20bce5cf642f767769dfcf" args="(char *data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structdirectoryList.html">dirList_t</a> ubixFSLoadDir           </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>data</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="directory_8c-source.html#l00041">41</a> of file <a class="el" href="directory_8c-source.html">directory.c</a>.
<p>
References <a class="el" href="ubixfs_8h-source.html#l00059">directoryList::dirCache</a>, <a class="el" href="directory_8c-source.html#l00038">dirList</a>, <a class="el" href="ubixfs_8h-source.html#l00058">directoryList::dirName</a>, <a class="el" href="kmalloc_8c-source.html#l00247">kmalloc()</a>, <a class="el" href="ubixfs_8h-source.html#l00061">directoryList::next</a>, <a class="el" href="ubixfs_8h-source.html#l00062">directoryList::prev</a>, <a class="el" href="kprintf_8c-source.html#l00051">sprintf()</a>, and <a class="el" href="string_8c-source.html#l00032">strcmp()</a>.
<p>
Here is the call graph for this function:<p><center><img src="directory_8c_7cac3d485d20bce5cf642f767769dfcf_cgraph.png" border="0" usemap="#directory_8c_7cac3d485d20bce5cf642f767769dfcf_cgraph_map" alt=""></center>
<map name="directory_8c_7cac3d485d20bce5cf642f767769dfcf_cgraph_map">
<area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="173,122,248,148" alt="">
<area href="lib_2string_8h.html#c38cd16373d98782e1465bd3d5aba470" shape="rect" coords="179,172,243,199" alt="">
<area href="lib_2string_8h.html#6f3dcb20ff11ff9db5904c3cfb61a38c" shape="rect" coords="177,223,244,250" alt="">
<area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="297,198,417,224" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="719,46,785,72" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="712,324,792,351" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="704,223,800,250" alt="">
<area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="296,71,419,98" alt="">
<area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="528,71,595,98" alt="">
<area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="523,172,600,199" alt="">
<area href="paging_8h.html#541f0b43826a40b9e978f5479080bb0e" shape="rect" coords="467,274,656,300" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="19ed96e270f8c904857e2fe1651ea325"></a><!-- doxytag: member="directory.c::ubixFSmkDir" ref="19ed96e270f8c904857e2fe1651ea325" args="(char *directory, fileDescriptor *fd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ubixFSmkDir           </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>directory</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%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="directory_8c-source.html#l00094">94</a> of file <a class="el" href="directory_8c-source.html">directory.c</a>.
<p>
References <a class="el" href="directory_8c-source.html#l00066">addDirEntry()</a>, <a class="el" href="ubixfs_8h-source.html#l00110">directoryEntry::attributes</a>, <a class="el" href="ubixfs_8h-source.html#l00131">ubixFSInfo::blockAllocationTable</a>, <a class="el" href="ubixfs_8h-source.html#l00045">blockSize</a>, <a class="el" href="mount_8h-source.html#l00039">vfs_mountPoint::device</a>, <a class="el" href="device_8h-source.html#l00038">device_node::devInfo</a>, <a class="el" href="mount_8h-source.html#l00040">vfs_mountPoint::diskLabel</a>, <a class="el" href="ubixfs_8h-source.html#l00112">directoryEntry::fileName</a>, <a class="el" href="mount_8h-source.html#l00041">vfs_mountPoint::fsInfo</a>, <a class="el" href="block_8c-source.html#l00096">getFreeBlocks()</a>, <a class="el" href="device_8h-source.html#l00052">device_interface::info</a>, <a class="el" href="kmalloc_8c-source.html#l00351">kfree()</a>, <a class="el" href="kmalloc_8c-source.html#l00247">kmalloc()</a>, <a class="el" href="file_8h-source.html#l00049">fileDescriptorStruct::mp</a>, <a class="el" href="mount_8h-source.html#l00042">vfs_mountPoint::partition</a>, <a class="el" href="structubixDiskLabel.html#a97973cf7f0b67811080656e11c6385f">ubixDiskLabel::partitions</a>, <a class="el" href="ubixfs_8h-source.html#l00111">directoryEntry::permissions</a>, <a class="el" href="ubixfs_8h-source.html#l00097">blockAllocationTableEntry::realSector</a>, <a class="el" href="ubixfs_8h-source.html#l00105">directoryEntry::size</a>, <a class="el" href="kprintf_8c-source.html#l00051">sprintf()</a>, <a class="el" href="ubixfs_8h-source.html#l00104">directoryEntry::startCluster</a>, <a class="el" href="ubixfs_8h-source.html#l00053">typeDirectory</a>, <a class="el" href="ubixfs_8h-source.html#l00040">UBIXFS_BLOCKSIZE_BYTES</a>, and <a class="el" href="structdevice__interface.html#f46913eec9f191290c82db23380bc5df">device_interface::write</a>.
<p>
Referenced by <a class="el" href="ubixfs_8c-source.html#l00456">ubixfs_init()</a>.
<p>
Here is the call graph for this function:<p><center><img src="directory_8c_19ed96e270f8c904857e2fe1651ea325_cgraph.png" border="0" usemap="#directory_8c_19ed96e270f8c904857e2fe1651ea325_cgraph_map" alt=""></center>
<map name="directory_8c_19ed96e270f8c904857e2fe1651ea325_cgraph_map">
<area href="ubixfs_8h.html#756e1f497c4d9fed64ac0a2256f9fa46" shape="rect" coords="164,221,266,248" alt="">
<area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="488,208,563,235" alt="">
<area href="ubixfs_8h.html#d2880707d0f942f5119f946db4e13e4e" shape="rect" coords="468,399,583,425" alt="">
<area href="kmalloc_8h.html#aa9ed6886459604cf73ccdbf6410e487" shape="rect" coords="498,348,554,375" alt="">
<area href="lib_2string_8h.html#c38cd16373d98782e1465bd3d5aba470" shape="rect" coords="183,449,247,476" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="947,309,1014,336" alt="">
<area href="lib_2string_8h.html#e33b18edb618c656b9b795b9fce2316c" shape="rect" coords="327,297,407,324" alt="">
<area href="ubixfs_8h.html#3882cc85dc373eba13315dfb0da4c578" shape="rect" coords="644,107,743,133" alt="">
<area href="ubixfs_8h.html#ba0435c266346dd10ac3cbc68655b20c" shape="rect" coords="316,247,418,273" alt="">
<area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="634,259,754,285" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="811,309,891,336" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="803,259,899,285" alt="">
<area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="632,208,755,235" alt="">
<area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="818,208,884,235" alt="">
<area href="lib_2string_8h.html#6f3dcb20ff11ff9db5904c3cfb61a38c" shape="rect" coords="492,259,559,285" alt="">
</map>

</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="c58a1f5b454f2ce5ce3619fd470583a2"></a><!-- doxytag: member="directory.c::dirList" ref="c58a1f5b454f2ce5ce3619fd470583a2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structdirectoryList.html">dirList_t</a> <a class="el" href="directory_8c.html#c58a1f5b454f2ce5ce3619fd470583a2">dirList</a> = 0x0<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="directory_8c-source.html#l00038">38</a> of file <a class="el" href="directory_8c-source.html">directory.c</a>.
<p>
Referenced by <a class="el" href="dirCache_8c-source.html#l00055">ubixfs_cacheFind()</a>, <a class="el" href="dirCache_8c-source.html#l00043">ubixfs_findName()</a>, and <a class="el" href="directory_8c-source.html#l00041">ubixFSLoadDir()</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:25:50 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>