<!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 Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Data 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> <u>S</u>earch for </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 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> » <a class="el" href="dir_832905b1f7f5feaf61a306b40c0ac817.html">sys</a> » <a class="el" href="dir_74196872fc832845f1a07f1162e5c554.html">ubixfs</a></div> <h1>directory.c File Reference</h1> <p> <code>#include <<a class="el" href="include_2ubixfs_2ubixfs_8h-source.html">ubixfs/ubixfs.h</a>></code><br> <code>#include <<a class="el" href="include_2vfs_2file_8h-source.html">vfs/file.h</a>></code><br> <code>#include <<a class="el" href="mount_8h-source.html">vfs/mount.h</a>></code><br> <code>#include <<a class="el" href="include_2ubixos_2types_8h-source.html">ubixos/types.h</a>></code><br> <code>#include <<a class="el" href="kmalloc_8h-source.html">lib/kmalloc.h</a>></code><br> <code>#include <<a class="el" href="kprintf_8h-source.html">lib/kprintf.h</a>></code><br> <code>#include <<a class="el" href="lib_2string_8h-source.html">lib/string.h</a>></code><br> <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 </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="structfileDescriptor.html">fileDescriptor</a> *fd)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structdirectoryList.html">dirList_t</a> </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="directory_8c.html#19ed96e270f8c904857e2fe1651ea325">ubixFSmkDir</a> (char *directory, <a class="el" href="structfileDescriptor.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> </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> * </td> <td class="paramname"> <em>dir</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structfileDescriptor.html">fileDescriptor</a> * </td> <td class="paramname"> <em>fd</em></td><td> </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="ubixfsv2_2file_8h-source.html#l00010">fileDescriptor::offset</a>, <a class="el" href="ubixfs_8c-source.html#l00194">readUbixFS()</a>, <a class="el" href="ubixfsv2_2file_8h-source.html#l00011">fileDescriptor::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>. </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 * </td> <td class="paramname"> <em>data</em> </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#l00041">41</a> of file <a class="el" href="directory_8c-source.html">directory.c</a>. <p> References <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00059">directoryList::dirCache</a>, <a class="el" href="directory_8c-source.html#l00038">dirList</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00058">directoryList::dirName</a>, <a class="el" href="kmalloc_8c-source.html#l00247">kmalloc()</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00061">directoryList::next</a>, <a class="el" href="include_2ubixfs_2ubixfs_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#l00042">strcmp()</a>. </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 * </td> <td class="paramname"> <em>directory</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structfileDescriptor.html">fileDescriptor</a> * </td> <td class="paramname"> <em>fd</em></td><td> </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="include_2ubixfs_2ubixfs_8h-source.html#l00110">directoryEntry::attributes</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00131">ubixFSInfo::blockAllocationTable</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00045">blockSize</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00112">directoryEntry::fileName</a>, <a class="el" href="block_8c-source.html#l00096">getFreeBlocks()</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="include_2ubixfs_2ubixfs_8h-source.html#l00111">directoryEntry::permissions</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00097">blockAllocationTableEntry::realSector</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00105">directoryEntry::size</a>, <a class="el" href="kprintf_8c-source.html#l00051">sprintf()</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00104">directoryEntry::startCluster</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00053">typeDirectory</a>, and <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00040">UBIXFS_BLOCKSIZE_BYTES</a>. <p> Referenced by <a class="el" href="ubixfs_8c-source.html#l00456">ubixfs_init()</a>. </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 Tue Dec 5 09:28:07 2006 for UbixOS V2 by <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>