<!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/ubixfs.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="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>ubixfs.c File Reference</h1><code>#include <<a class="el" href="ubixfs_8h-source.html">ubixfs/ubixfs.h</a>></code><br> <code>#include <<a class="el" href="dirCache_8h-source.html">ubixfs/dirCache.h</a>></code><br> <code>#include <<a class="el" href="vfs_8h-source.html">vfs/vfs.h</a>></code><br> <code>#include <<a class="el" href="types_8h-source.html">ubixos/types.h</a>></code><br> <code>#include <<a class="el" href="sched_8h-source.html">ubixos/sched.h</a>></code><br> <code>#include <<a class="el" href="kpanic_8h-source.html">ubixos/kpanic.h</a>></code><br> <code>#include <<a class="el" href="exec_8h-source.html">ubixos/exec.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="lib_2string_8h-source.html">lib/string.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="assert_8h-source.html">assert.h</a>></code><br> <p> Include dependency graph for ubixfs.c:<p><center><img src="ubixfs_8c__incl.png" border="0" usemap="#src/sys/ubixfs/ubixfs.c_map" alt=""></center> <map name="src/sys/ubixfs/ubixfs.c_map"> <area href="ubixfs_8h.html" shape="rect" coords="228,201,348,228" alt=""> <area href="types_8h.html" shape="rect" coords="764,277,884,304" alt=""> <area href="vfs_8h.html" shape="rect" coords="432,75,510,101" alt=""> <area href="sched_8h.html" shape="rect" coords="591,328,714,355" alt=""> <area href="dirCache_8h.html" shape="rect" coords="402,277,540,304" alt=""> <area href="kpanic_8h.html" shape="rect" coords="224,581,352,608" alt=""> <area href="exec_8h.html" shape="rect" coords="414,379,528,405" alt=""> <area href="kmalloc_8h.html" shape="rect" coords="599,429,706,456" alt=""> <area href="lib_2string_8h.html" shape="rect" coords="606,480,699,507" alt=""> <area href="kprintf_8h.html" shape="rect" coords="239,531,338,557" alt=""> <area href="assert_8h.html" shape="rect" coords="251,632,326,659" alt=""> <area href="device_8h.html" shape="rect" coords="599,176,706,203" alt=""> <area href="mpi_8h.html" shape="rect" coords="426,227,516,253" alt=""> </map> <p> <a href="ubixfs_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">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="ubixfs_8c.html#0ab17f87a44bc7bb7ee3c76262f80e94">openFileUbixFS</a> (const 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">int </td><td class="memItemRight" valign="bottom"><a class="el" href="ubixfs_8c.html#51f5dd233a9470dd0254bb0d0e435b8d">readUbixFS</a> (<a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *fd, char *data, <a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> offset, long size)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="ubixfs_8c.html#1d4159e0eb816b6b23c214d7c601dcb4">ubixfs_init</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="ubixfs_8c.html#32762e2563015d124909f3317c2a7423">ubixfs_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">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="ubixfs_8c.html#ec127f9c4f26d2021e637f5f92ef8e12">ubixfs_loadData</a> (<a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *fd, char *data, <a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> size, <a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> batIndex)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="ubixfs_8c.html#dfbafb62e063e24f4df09029862ba9d0">ubixFSUnlink</a> (char *path, struct <a class="el" href="structvfs__mountPoint.html">vfs_mountPoint</a> *mp)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="ubixfs_8c.html#4c7f9c50f698ab4cdde8655aaf6363aa">writeFileByte</a> (int ch, <a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *fd, long offset)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="ubixfs_8c.html#ba0435c266346dd10ac3cbc68655b20c">writeUbixFS</a> (<a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *fd, char *data, long offset, long size)</td></tr> </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="0ab17f87a44bc7bb7ee3c76262f80e94"></a><!-- doxytag: member="ubixfs.c::openFileUbixFS" ref="0ab17f87a44bc7bb7ee3c76262f80e94" args="(const char *file, fileDescriptor *fd)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int openFileUbixFS </td> <td>(</td> <td class="paramtype">const char * </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> * </td> <td class="paramname"> <em>fd</em></td><td> </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="ubixfs_8c-source.html#l00046">46</a> of file <a class="el" href="ubixfs_8c-source.html">ubixfs.c</a>. <p> References <a class="el" href="assert_8h-source.html#l00064">assert</a>, <a class="el" href="file_8h-source.html#l00059">fileDescriptorStruct::cacheNode</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="ubixfs_8h-source.html#l00132">ubixFSInfo::dirCache</a>, <a class="el" href="vfs_8h-source.html#l00046">fileRead</a>, <a class="el" href="vfs_8h-source.html#l00047">fileWrite</a>, <a class="el" href="mount_8h-source.html#l00041">vfs_mountPoint::fsInfo</a>, <a class="el" href="dirCache_8h-source.html#l00014">cacheNode::info</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="file_8h-source.html#l00051">fileDescriptorStruct::mode</a>, <a class="el" href="file_8h-source.html#l00049">fileDescriptorStruct::mp</a>, <a class="el" href="types_8h-source.html#l00036">NULL</a>, <a class="el" href="dirCache_8h-source.html#l00020">cacheNode::permissions</a>, <a class="el" href="file_8h-source.html#l00060">fileDescriptorStruct::perms</a>, <a class="el" href="dirCache_8h-source.html#l00016">cacheNode::present</a>, <a class="el" href="structdevice__interface.html#6caf84418059d0121e76d873e305ddcb">device_interface::read</a>, <a class="el" href="file_8h-source.html#l00053">fileDescriptorStruct::size</a>, <a class="el" href="dirCache_8h-source.html#l00015">cacheNode::size</a>, <a class="el" href="file_8h-source.html#l00055">fileDescriptorStruct::start</a>, <a class="el" href="dirCache_8h-source.html#l00018">cacheNode::startCluster</a>, <a class="el" href="ubixfs_8h-source.html#l00041">UBIXFS_ALIGN</a>, <a class="el" href="dirCache_8c-source.html#l00055">ubixfs_cacheFind()</a>, <a class="el" href="ubixfs_8c-source.html#l00341">ubixfs_loadData()</a>, and <a class="el" href="ap-boot_8S-source.html#l00006">x1</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="ubixfs_8c_0ab17f87a44bc7bb7ee3c76262f80e94_cgraph.png" border="0" usemap="#ubixfs_8c_0ab17f87a44bc7bb7ee3c76262f80e94_cgraph_map" alt=""></center> <map name="ubixfs_8c_0ab17f87a44bc7bb7ee3c76262f80e94_cgraph_map"> <area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="552,252,627,279" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="709,411,776,437" alt=""> <area href="dirCache_8h.html#d136be51f0e49671914a4f0db3bb2314" shape="rect" coords="180,201,316,228" alt=""> <area href="ubixfs_8c.html#ec127f9c4f26d2021e637f5f92ef8e12" shape="rect" coords="183,480,313,507" alt=""> <area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="683,240,803,267" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="867,113,947,140" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="859,265,955,292" alt=""> <area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="681,189,804,216" alt=""> <area href="lib_2string_8h.html#6f3dcb20ff11ff9db5904c3cfb61a38c" shape="rect" coords="556,125,623,152" alt=""> <area href="dirCache_8h.html#42dd78873d67b29f68a271fc30a60bf4" shape="rect" coords="675,88,811,115" alt=""> <area href="dirCache_8h.html#adfffea5ad577cecdfbc4eb7989cf193" shape="rect" coords="365,252,504,279" alt=""> <area href="dirCache_8c.html#ee88b75cf4360a46adb5021e358625d3" shape="rect" coords="367,100,503,127" alt=""> </map> </div> </div><p> <a class="anchor" name="51f5dd233a9470dd0254bb0d0e435b8d"></a><!-- doxytag: member="ubixfs.c::readUbixFS" ref="51f5dd233a9470dd0254bb0d0e435b8d" args="(fileDescriptor *fd, char *data, uInt32 offset, long size)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int readUbixFS </td> <td>(</td> <td class="paramtype"><a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> * </td> <td class="paramname"> <em>fd</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td> <td class="paramname"> <em>offset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">long </td> <td class="paramname"> <em>size</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="ubixfs_8c-source.html#l00194">194</a> of file <a class="el" href="ubixfs_8c-source.html">ubixfs.c</a>. <p> References <a class="el" href="assert_8h-source.html#l00064">assert</a>, <a class="el" href="file_8h-source.html#l00059">fileDescriptorStruct::cacheNode</a>, <a class="el" href="vfs_8h-source.html#l00043">fdEof</a>, <a class="el" href="mount_8h-source.html#l00041">vfs_mountPoint::fsInfo</a>, <a class="el" href="dirCache_8h-source.html#l00014">cacheNode::info</a>, <a class="el" href="kpanic_8c-source.html#l00042">kpanic()</a>, <a class="el" href="file_8h-source.html#l00049">fileDescriptorStruct::mp</a>, <a class="el" href="types_8h-source.html#l00036">NULL</a>, <a class="el" href="dirCache_8h-source.html#l00016">cacheNode::present</a>, <a class="el" href="file_8h-source.html#l00053">fileDescriptorStruct::size</a>, and <a class="el" href="file_8h-source.html#l00050">fileDescriptorStruct::status</a>. <p> Referenced by <a class="el" href="directory_8c-source.html#l00066">addDirEntry()</a>, and <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="ubixfs_8c_51f5dd233a9470dd0254bb0d0e435b8d_cgraph.png" border="0" usemap="#ubixfs_8c_51f5dd233a9470dd0254bb0d0e435b8d_cgraph_map" alt=""></center> <map name="ubixfs_8c_51f5dd233a9470dd0254bb0d0e435b8d_cgraph_map"> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="152,56,219,83" alt=""> <area href="8259_8h.html#2b9ec30943ddb0a2ef3bd7ccfd2026c0" shape="rect" coords="267,5,357,32" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="279,56,345,83" alt=""> <area href="stdarg_8h.html#621577c2df0ad5faa281223c56eeb7a5" shape="rect" coords="276,107,348,133" alt=""> <area href="vsprintf_8c.html#c2f4c669c6f6aa6caa5ab8adb1b07dd0" shape="rect" coords="409,81,484,108" alt=""> <area href="vsprintf_8c.html#3fa7c8ef8597579301cb4b5c59bc6d9a" shape="rect" coords="407,132,487,159" alt=""> </map> </div> </div><p> <a class="anchor" name="1d4159e0eb816b6b23c214d7c601dcb4"></a><!-- doxytag: member="ubixfs.c::ubixfs_init" ref="1d4159e0eb816b6b23c214d7c601dcb4" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int ubixfs_init </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="ubixfs_8c-source.html#l00456">456</a> of file <a class="el" href="ubixfs_8c-source.html">ubixfs.c</a>. <p> References <a class="el" href="kpanic_8c-source.html#l00042">kpanic()</a>, <a class="el" href="types_8h-source.html#l00036">NULL</a>, <a class="el" href="ubixfs_8c-source.html#l00046">openFileUbixFS()</a>, <a class="el" href="ubixfs_8c-source.html#l00194">readUbixFS()</a>, <a class="el" href="ubixfs_8h.html#2c53ad6e6ce2e149eec9b5361dd10eda">ubixfs_initialize()</a>, <a class="el" href="directory_8c-source.html#l00094">ubixFSmkDir()</a>, <a class="el" href="ubixfs_8c-source.html#l00309">ubixFSUnlink()</a>, <a class="el" href="vfs_8c-source.html#l00081">vfsRegisterFS()</a>, <a class="el" href="ubixfs_8c-source.html#l00232">writeUbixFS()</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="ubixfs_8c_1d4159e0eb816b6b23c214d7c601dcb4_cgraph.png" border="0" usemap="#ubixfs_8c_1d4159e0eb816b6b23c214d7c601dcb4_cgraph_map" alt=""></center> <map name="ubixfs_8c_1d4159e0eb816b6b23c214d7c601dcb4_cgraph_map"> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="705,56,772,83" alt=""> <area href="ubixfs_8c.html#0ab17f87a44bc7bb7ee3c76262f80e94" shape="rect" coords="320,587,445,613" alt=""> <area href="ubixfs_8h.html#3882cc85dc373eba13315dfb0da4c578" shape="rect" coords="513,56,612,83" alt=""> <area href="ubixfs_8h.html#2c53ad6e6ce2e149eec9b5361dd10eda" shape="rect" coords="145,259,271,285" alt=""> <area href="ubixfs_8h.html#a3a7f1d4d6f7d2477798e933acf2cb3f" shape="rect" coords="155,208,261,235" alt=""> <area href="ubixfs_8h.html#ba0435c266346dd10ac3cbc68655b20c" shape="rect" coords="512,259,613,285" alt=""> <area href="ubixfs_8h.html#dfbafb62e063e24f4df09029862ba9d0" shape="rect" coords="508,536,617,563" alt=""> <area href="vfs_8h.html#8652b1ccbcf7d2a872c5781640f7d59a" shape="rect" coords="327,688,439,715" alt=""> <area href="8259_8h.html#2b9ec30943ddb0a2ef3bd7ccfd2026c0" shape="rect" coords="845,81,936,108" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="857,485,924,512" alt=""> <area href="stdarg_8h.html#621577c2df0ad5faa281223c56eeb7a5" shape="rect" coords="855,31,927,57" alt=""> <area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="701,485,776,512" alt=""> <area href="dirCache_8h.html#d136be51f0e49671914a4f0db3bb2314" shape="rect" coords="495,435,631,461" alt=""> <area href="ubixfs_8c.html#ec127f9c4f26d2021e637f5f92ef8e12" shape="rect" coords="497,587,628,613" alt=""> <area href="lib_2string_8h.html#6f3dcb20ff11ff9db5904c3cfb61a38c" shape="rect" coords="705,435,772,461" alt=""> <area href="ubixfs_8h.html#756e1f497c4d9fed64ac0a2256f9fa46" shape="rect" coords="332,259,433,285" alt=""> <area href="ubixfs_8h.html#d2880707d0f942f5119f946db4e13e4e" shape="rect" coords="681,157,796,184" alt=""> <area href="kmalloc_8h.html#aa9ed6886459604cf73ccdbf6410e487" shape="rect" coords="711,107,767,133" alt=""> <area href="lib_2string_8h.html#c38cd16373d98782e1465bd3d5aba470" shape="rect" coords="351,157,415,184" alt=""> <area href="lib_2string_8h.html#e33b18edb618c656b9b795b9fce2316c" shape="rect" coords="523,360,603,387" alt=""> <area href="vfs_8c.html#c49aa10a62b250834a055476c849b7b3" shape="rect" coords="520,840,605,867" alt=""> </map> </div> </div><p> <a class="anchor" name="32762e2563015d124909f3317c2a7423"></a><!-- doxytag: member="ubixfs.c::ubixfs_initialize" ref="32762e2563015d124909f3317c2a7423" args="(struct vfs_mountPoint *mp)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int ubixfs_initialize </td> <td>(</td> <td class="paramtype">struct <a class="el" href="structvfs__mountPoint.html">vfs_mountPoint</a> * </td> <td class="paramname"> <em>mp</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="ubixfs_8c-source.html#l00376">376</a> of file <a class="el" href="ubixfs_8c-source.html">ubixfs.c</a>. <p> References <a class="el" href="assert_8h-source.html#l00064">assert</a>, <a class="el" href="dirCache_8h-source.html#l00019">cacheNode::attributes</a>, <a class="el" href="ubixfs_8h-source.html#l00133">ubixFSInfo::batEntries</a>, <a class="el" href="ubixfs_8h-source.html#l00131">ubixFSInfo::blockAllocationTable</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="ubixfs_8h-source.html#l00132">ubixFSInfo::dirCache</a>, <a class="el" href="mount_8h-source.html#l00040">vfs_mountPoint::diskLabel</a>, <a class="el" href="mount_8h-source.html#l00041">vfs_mountPoint::fsInfo</a>, <a class="el" href="dirCache_8h-source.html#l00014">cacheNode::info</a>, <a class="el" href="device_8h-source.html#l00052">device_interface::info</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="ubixfs_8h-source.html#l00072">ubixDiskLabel::magicNum</a>, <a class="el" href="ubixfs_8h-source.html#l00073">ubixDiskLabel::magicNum2</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#l00080">ubixDiskLabel::ubixPartitions::pBatSize</a>, <a class="el" href="dirCache_8h-source.html#l00020">cacheNode::permissions</a>, <a class="el" href="dirCache_8h-source.html#l00016">cacheNode::present</a>, <a class="el" href="structdevice__interface.html#6caf84418059d0121e76d873e305ddcb">device_interface::read</a>, <a class="el" href="ubixfs_8h-source.html#l00134">ubixFSInfo::rootDir</a>, <a class="el" href="dirCache_8h-source.html#l00015">cacheNode::size</a>, <a class="el" href="dirCache_8h-source.html#l00018">cacheNode::startCluster</a>, <a class="el" href="ubixfs_8h-source.html#l00043">UBIXDISKMAGIC</a>, <a class="el" href="dirCache_8c-source.html#l00185">ubixfs_cacheNew()</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="ubixfs_8c_32762e2563015d124909f3317c2a7423_cgraph.png" border="0" usemap="#ubixfs_8c_32762e2563015d124909f3317c2a7423_cgraph_map" alt=""></center> <map name="ubixfs_8c_32762e2563015d124909f3317c2a7423_cgraph_map"> <area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="368,284,443,311" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="913,360,980,387" alt=""> <area href="dirCache_8h.html#adfffea5ad577cecdfbc4eb7989cf193" shape="rect" coords="181,335,320,362" alt=""> <area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="492,183,612,210" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="907,208,987,235" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="899,56,995,83" alt=""> <area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="491,310,613,336" alt=""> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="723,310,789,336" alt=""> <area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="717,158,795,184" alt=""> <area href="paging_8h.html#541f0b43826a40b9e978f5479080bb0e" shape="rect" coords="661,107,851,134" alt=""> </map> </div> </div><p> <a class="anchor" name="ec127f9c4f26d2021e637f5f92ef8e12"></a><!-- doxytag: member="ubixfs.c::ubixfs_loadData" ref="ec127f9c4f26d2021e637f5f92ef8e12" args="(fileDescriptor *fd, char *data, uInt32 size, uInt32 batIndex)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int ubixfs_loadData </td> <td>(</td> <td class="paramtype"><a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> * </td> <td class="paramname"> <em>fd</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td> <td class="paramname"> <em>size</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td> <td class="paramname"> <em>batIndex</em></td><td> </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="ubixfs_8c-source.html#l00341">341</a> of file <a class="el" href="ubixfs_8c-source.html">ubixfs.c</a>. <p> References <a class="el" href="assert_8h-source.html#l00064">assert</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="mount_8h-source.html#l00041">vfs_mountPoint::fsInfo</a>, <a class="el" href="device_8h-source.html#l00052">device_interface::info</a>, <a class="el" href="file_8h-source.html#l00049">fileDescriptorStruct::mp</a>, <a class="el" href="ubixfs_8h-source.html#l00098">blockAllocationTableEntry::nextBlock</a>, <a class="el" href="types_8h-source.html#l00036">NULL</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="structdevice__interface.html#6caf84418059d0121e76d873e305ddcb">device_interface::read</a>, <a class="el" href="ubixfs_8h-source.html#l00097">blockAllocationTableEntry::realSector</a>, <a class="el" href="ubixfs_8h-source.html#l00041">UBIXFS_ALIGN</a>, and <a class="el" href="ubixfs_8h-source.html#l00040">UBIXFS_BLOCKSIZE_BYTES</a>. <p> Referenced by <a class="el" href="ubixfs_8c-source.html#l00046">openFileUbixFS()</a>. </div> </div><p> <a class="anchor" name="dfbafb62e063e24f4df09029862ba9d0"></a><!-- doxytag: member="ubixfs.c::ubixFSUnlink" ref="dfbafb62e063e24f4df09029862ba9d0" args="(char *path, struct vfs_mountPoint *mp)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void ubixFSUnlink </td> <td>(</td> <td class="paramtype">char * </td> <td class="paramname"> <em>path</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">struct <a class="el" href="structvfs__mountPoint.html">vfs_mountPoint</a> * </td> <td class="paramname"> <em>mp</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="ubixfs_8c-source.html#l00309">309</a> of file <a class="el" href="ubixfs_8c-source.html">ubixfs.c</a>. <p> References <a class="el" href="ubixfs_8h-source.html#l00131">ubixFSInfo::blockAllocationTable</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="device_8h-source.html#l00052">device_interface::info</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="mount_8h-source.html#l00042">vfs_mountPoint::partition</a>, <a class="el" href="structubixDiskLabel.html#a97973cf7f0b67811080656e11c6385f">ubixDiskLabel::partitions</a>, <a class="el" href="structdevice__interface.html#6caf84418059d0121e76d873e305ddcb">device_interface::read</a>, <a class="el" href="ubixfs_8h-source.html#l00134">ubixFSInfo::rootDir</a>, <a class="el" href="string_8c-source.html#l00032">strcmp()</a>, <a class="el" href="ubixfs_8h-source.html#l00054">typeDeleted</a>, <a class="el" href="structdevice__interface.html#f46913eec9f191290c82db23380bc5df">device_interface::write</a>, and <a class="el" href="ap-boot_8S-source.html#l00052">x1000</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="ubixfs_8c_dfbafb62e063e24f4df09029862ba9d0_cgraph.png" border="0" usemap="#ubixfs_8c_dfbafb62e063e24f4df09029862ba9d0_cgraph_map" alt=""></center> <map name="ubixfs_8c_dfbafb62e063e24f4df09029862ba9d0_cgraph_map"> <area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="163,284,238,311" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="708,360,775,387" alt=""> <area href="lib_2string_8h.html#6f3dcb20ff11ff9db5904c3cfb61a38c" shape="rect" coords="167,461,234,488" alt=""> <area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="287,183,407,209" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="702,208,782,235" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="694,56,790,83" alt=""> <area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="286,309,408,336" alt=""> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="518,309,584,336" alt=""> <area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="512,157,590,184" alt=""> <area href="paging_8h.html#541f0b43826a40b9e978f5479080bb0e" shape="rect" coords="456,107,646,133" alt=""> </map> </div> </div><p> <a class="anchor" name="4c7f9c50f698ab4cdde8655aaf6363aa"></a><!-- doxytag: member="ubixfs.c::writeFileByte" ref="4c7f9c50f698ab4cdde8655aaf6363aa" args="(int ch, fileDescriptor *fd, long offset)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int writeFileByte </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>ch</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> * </td> <td class="paramname"> <em>fd</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">long </td> <td class="paramname"> <em>offset</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="ubixfs_8c-source.html#l00118">118</a> of file <a class="el" href="ubixfs_8c-source.html">ubixfs.c</a>. <p> References <a class="el" href="assert_8h-source.html#l00064">assert</a>, <a class="el" href="ubixfs_8h-source.html#l00131">ubixFSInfo::blockAllocationTable</a>, <a class="el" href="mount_8h-source.html#l00040">vfs_mountPoint::diskLabel</a>, <a class="el" href="vfs_8h-source.html#l00041">fdOpen</a>, <a class="el" href="vfs_8h-source.html#l00042">fdRead</a>, <a class="el" href="mount_8h-source.html#l00041">vfs_mountPoint::fsInfo</a>, <a class="el" href="file_8h-source.html#l00049">fileDescriptorStruct::mp</a>, <a class="el" href="ubixfs_8h-source.html#l00098">blockAllocationTableEntry::nextBlock</a>, <a class="el" href="types_8h-source.html#l00036">NULL</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#l00080">ubixDiskLabel::ubixPartitions::pBatSize</a>, <a class="el" href="file_8h-source.html#l00055">fileDescriptorStruct::start</a>, and <a class="el" href="file_8h-source.html#l00050">fileDescriptorStruct::status</a>. </div> </div><p> <a class="anchor" name="ba0435c266346dd10ac3cbc68655b20c"></a><!-- doxytag: member="ubixfs.c::writeUbixFS" ref="ba0435c266346dd10ac3cbc68655b20c" args="(fileDescriptor *fd, char *data, long offset, long size)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int writeUbixFS </td> <td>(</td> <td class="paramtype"><a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> * </td> <td class="paramname"> <em>fd</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">long </td> <td class="paramname"> <em>offset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">long </td> <td class="paramname"> <em>size</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="ubixfs_8c-source.html#l00232">232</a> of file <a class="el" href="ubixfs_8c-source.html">ubixfs.c</a>. <p> References <a class="el" href="assert_8h-source.html#l00064">assert</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="file_8h-source.html#l00057">fileDescriptorStruct::buffer</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#l00048">EOBC</a>, <a class="el" href="file_8h-source.html#l00056">fileDescriptorStruct::fileName</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="ubixfs_8h-source.html#l00098">blockAllocationTableEntry::nextBlock</a>, <a class="el" href="types_8h-source.html#l00036">NULL</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="structdevice__interface.html#6caf84418059d0121e76d873e305ddcb">device_interface::read</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="file_8h-source.html#l00053">fileDescriptorStruct::size</a>, <a class="el" href="file_8h-source.html#l00055">fileDescriptorStruct::start</a>, <a class="el" href="ubixfs_8h-source.html#l00104">directoryEntry::startCluster</a>, <a class="el" href="string_8c-source.html#l00032">strcmp()</a>, <a class="el" href="structdevice__interface.html#f46913eec9f191290c82db23380bc5df">device_interface::write</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#l00066">addDirEntry()</a>, and <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="ubixfs_8c_ba0435c266346dd10ac3cbc68655b20c_cgraph.png" border="0" usemap="#ubixfs_8c_ba0435c266346dd10ac3cbc68655b20c_cgraph_map" alt=""></center> <map name="ubixfs_8c_ba0435c266346dd10ac3cbc68655b20c_cgraph_map"> <area href="ubixfs_8h.html#d2880707d0f942f5119f946db4e13e4e" shape="rect" coords="159,56,273,83" alt=""> <area href="kmalloc_8h.html#aa9ed6886459604cf73ccdbf6410e487" shape="rect" coords="188,157,244,184" alt=""> <area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="179,208,253,235" alt=""> <area href="lib_2string_8h.html#6f3dcb20ff11ff9db5904c3cfb61a38c" shape="rect" coords="183,259,249,285" alt=""> <area href="ubixfs_8h.html#99dfa2e54401fafb70357a6632c4ef10" shape="rect" coords="347,5,421,32" alt=""> <area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="323,157,445,184" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="745,157,812,184" alt=""> <area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="549,309,627,336" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="739,487,819,513" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="731,309,827,336" alt=""> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="555,157,621,184" alt=""> <area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="875,461,976,488" alt=""> <area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="876,512,975,539" alt=""> <area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="324,360,444,387" alt=""> <area href="paging_8h.html#541f0b43826a40b9e978f5479080bb0e" shape="rect" coords="493,411,683,437" alt=""> </map> </div> </div><p> <hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:25:57 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>