<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.16"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>UbixOS: fs/ubixfs/ubixfs.c File Reference</title> <link href="../../tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../jquery.js"></script> <script type="text/javascript" src="../../dynsections.js"></script> <link href="../../navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../resize.js"></script> <script type="text/javascript" src="../../navtreedata.js"></script> <script type="text/javascript" src="../../navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="../../doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">UbixOS  <span id="projectnumber">2.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.16 --> <script type="text/javascript" src="../../menudata.js"></script> <script type="text/javascript" src="../../menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('../../',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('d2/d34/ubixfs_8c.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">ubixfs.c File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include <<a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html">ubixfs/ubixfs.h</a>></code><br /> <code>#include <<a class="el" href="../../d1/de9/dirCache_8h_source.html">ubixfs/dirCache.h</a>></code><br /> <code>#include <<a class="el" href="../../db/da9/include_2vfs_2vfs_8h_source.html">vfs/vfs.h</a>></code><br /> <code>#include <<a class="el" href="../../d7/d00/sched_8h_source.html">ubixos/sched.h</a>></code><br /> <code>#include <<a class="el" href="../../d3/d24/kpanic_8h_source.html">ubixos/kpanic.h</a>></code><br /> <code>#include <<a class="el" href="../../df/d37/exec_8h_source.html">ubixos/exec.h</a>></code><br /> <code>#include <<a class="el" href="../../d4/d03/kmalloc_8h_source.html">lib/kmalloc.h</a>></code><br /> <code>#include <<a class="el" href="../../da/d66/string_8h_source.html">string.h</a>></code><br /> <code>#include <<a class="el" href="../../da/d28/kprintf_8h_source.html">lib/kprintf.h</a>></code><br /> <code>#include <<a class="el" href="../../dc/da7/assert_8h_source.html">assert.h</a>></code><br /> </div><div class="textblock"><div class="dynheader"> Include dependency graph for ubixfs.c:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d25/ubixfs_8c__incl.png" border="0" usemap="#fs_2ubixfs_2ubixfs_8c" alt=""/></div> <map name="fs_2ubixfs_2ubixfs_8c" id="fs_2ubixfs_2ubixfs_8c"> <area shape="rect" title=" " alt="" coords="1639,5,1758,32"/> <area shape="rect" href="../../d9/d32/include_2ubixfs_2ubixfs_8h.html" title=" " alt="" coords="1442,80,1547,107"/> <area shape="rect" href="../../db/da9/include_2vfs_2vfs_8h.html" title=" " alt="" coords="1112,155,1179,181"/> <area shape="rect" href="../../d1/de9/dirCache_8h.html" title=" " alt="" coords="1544,677,1667,704"/> <area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="5,827,91,853"/> <area shape="rect" href="../../d3/d24/kpanic_8h.html" title=" " alt="" coords="226,827,339,853"/> <area shape="rect" href="../../d7/d00/sched_8h.html" title=" " alt="" coords="1715,528,1826,555"/> <area shape="rect" href="../../df/d37/exec_8h.html" title=" " alt="" coords="1814,453,1917,480"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html" title=" " alt="" coords="1926,155,2021,181"/> <area shape="rect" href="../../da/d66/string_8h.html" title=" " alt="" coords="2078,752,2143,779"/> <area shape="rect" href="../../dc/da7/assert_8h.html" title=" " alt="" coords="2128,80,2197,107"/> <area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="1423,901,1513,928"/> <area shape="rect" href="../../d4/d7e/include_2sys_2device_8h.html" title=" " alt="" coords="1133,827,1227,853"/> <area shape="rect" href="../../d1/dd8/mpi_8h.html" title=" " alt="" coords="1659,453,1738,480"/> <area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="1257,1125,1354,1152"/> <area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="1259,976,1352,1003"/> <area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="969,1051,1058,1077"/> <area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="1387,1051,1506,1077"/> <area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="1082,1051,1187,1077"/> <area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="1211,1051,1311,1077"/> <area shape="rect" href="../../d6/db4/include_2vfs_2file_8h.html" title=" " alt="" coords="1099,603,1167,629"/> <area shape="rect" href="../../db/dd5/thread_8h.html" title=" " alt="" coords="1161,677,1255,704"/> <area shape="rect" href="../../d1/df2/wait_8h.html" title=" " alt="" coords="656,752,755,779"/> <area shape="rect" href="../../d2/d29/mount_8h.html" title=" " alt="" coords="1280,677,1368,704"/> <area shape="rect" href="../../d3/d7e/sysproto__posix_8h.html" title=" " alt="" coords="1072,528,1219,555"/> <area shape="rect" href="../../d7/d97/net_8h.html" title=" " alt="" coords="806,229,879,256"/> <area shape="rect" href="../../d3/d73/inode_8h.html" title=" " alt="" coords="985,677,1068,704"/> <area shape="rect" href="../../df/d42/ufs_8h.html" title=" " alt="" coords="1121,752,1191,779"/> <area shape="rect" href="../../d7/d0b/trap_8h.html" title=" " alt="" coords="1317,752,1397,779"/> <area shape="rect" href="../../df/d92/sys_2signal_8h.html" title=" " alt="" coords="1473,752,1565,779"/> <area shape="rect" href="../../d8/d01/resource_8h.html" title=" " alt="" coords="877,976,985,1003"/> <area shape="rect" href="../../d6/d35/i386_2cpu_8h.html" title=" " alt="" coords="1315,827,1397,853"/> <area shape="rect" href="../../d1/d7d/pipe__fs_8h.html" title=" " alt="" coords="907,752,995,779"/> <area shape="rect" href="../../d8/dff/msdos__fs_8h.html" title=" " alt="" coords="779,752,882,779"/> <area shape="rect" href="../../d9/d69/netif_8h.html" title=" " alt="" coords="598,304,677,331"/> <area shape="rect" href="../../dc/dba/opt_8h.html" title=" " alt="" coords="333,603,406,629"/> <area shape="rect" href="../../d6/d40/err_8h.html" title=" " alt="" coords="661,528,731,555"/> <area shape="rect" href="../../de/df7/ip__addr_8h.html" title=" " alt="" coords="449,379,546,405"/> <area shape="rect" href="../../d4/da4/def_8h.html" title=" " alt="" coords="460,528,532,555"/> <area shape="rect" href="../../d0/d35/pbuf_8h.html" title=" " alt="" coords="675,453,754,480"/> <area shape="rect" href="../../d9/d9b/stats_8h.html" title=" " alt="" coords="166,379,250,405"/> <area shape="rect" href="../../d2/d78/lwipopts_8h.html" title=" " alt="" coords="331,677,434,704"/> <area shape="rect" href="../../db/d16/debug_8h.html" title=" " alt="" coords="216,677,307,704"/> <area shape="rect" href="../../d2/d2d/arch_8h.html" title=" " alt="" coords="301,752,381,779"/> <area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="13,901,83,928"/> <area shape="rect" href="../../d1/da8/ip4__addr_8h.html" title=" " alt="" coords="317,453,421,480"/> <area shape="rect" href="../../d3/d7d/ip6__addr_8h.html" title=" " alt="" coords="445,453,549,480"/> <area shape="rect" href="../../dd/d71/tty_8h.html" title=" " alt="" coords="1760,603,1851,629"/> <area shape="rect" href="../../de/d9a/tss_8h.html" title=" " alt="" coords="1875,603,1951,629"/> <area shape="rect" href="../../d6/d90/strings_8h.html" title=" " alt="" coords="2128,827,2200,853"/> </map> </div> </div> <p><a href="../../d2/d34/ubixfs_8c_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:acbf342e4662a8d4904cdb627dc995822"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d34/ubixfs_8c.html#acbf342e4662a8d4904cdb627dc995822">readUbixFS</a> (<a class="el" href="../../d6/db4/include_2vfs_2file_8h.html#acc7b57f2d3766b4977ebbe64aa38608b">fileDescriptor_t</a> *fd, char *data, <a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> offset, long size)</td></tr> <tr class="separator:acbf342e4662a8d4904cdb627dc995822"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1d4159e0eb816b6b23c214d7c601dcb4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d34/ubixfs_8c.html#a1d4159e0eb816b6b23c214d7c601dcb4">ubixfs_init</a> ()</td></tr> <tr class="separator:a1d4159e0eb816b6b23c214d7c601dcb4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a32762e2563015d124909f3317c2a7423"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d34/ubixfs_8c.html#a32762e2563015d124909f3317c2a7423">ubixfs_initialize</a> (struct <a class="el" href="../../d3/d57/structvfs__mountPoint.html">vfs_mountPoint</a> *mp)</td></tr> <tr class="separator:a32762e2563015d124909f3317c2a7423"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adfbafb62e063e24f4df09029862ba9d0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d34/ubixfs_8c.html#adfbafb62e063e24f4df09029862ba9d0">ubixFSUnlink</a> (char *path, struct <a class="el" href="../../d3/d57/structvfs__mountPoint.html">vfs_mountPoint</a> *mp)</td></tr> <tr class="separator:adfbafb62e063e24f4df09029862ba9d0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a65f42c9b6ca7c526642fa1c168272b03"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d34/ubixfs_8c.html#a65f42c9b6ca7c526642fa1c168272b03">writeFileByte</a> (int ch, <a class="el" href="../../d6/db4/include_2vfs_2file_8h.html#acc7b57f2d3766b4977ebbe64aa38608b">fileDescriptor_t</a> *fd, long offset)</td></tr> <tr class="separator:a65f42c9b6ca7c526642fa1c168272b03"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab4c558016c9b29b63d6f8c8ba5fe7384"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d34/ubixfs_8c.html#ab4c558016c9b29b63d6f8c8ba5fe7384">writeUbixFS</a> (<a class="el" href="../../d6/db4/include_2vfs_2file_8h.html#acc7b57f2d3766b4977ebbe64aa38608b">fileDescriptor_t</a> *fd, char *data, long offset, long size)</td></tr> <tr class="separator:ab4c558016c9b29b63d6f8c8ba5fe7384"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Function Documentation</h2> <a id="acbf342e4662a8d4904cdb627dc995822"></a> <h2 class="memtitle"><span class="permalink"><a href="#acbf342e4662a8d4904cdb627dc995822">◆ </a></span>readUbixFS()</h2> <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="../../d6/db4/include_2vfs_2file_8h.html#acc7b57f2d3766b4977ebbe64aa38608b">fileDescriptor_t</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="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">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> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00192">192</a> of file <a class="el" href="../../d2/d34/ubixfs_8c_source.html">ubixfs.c</a>.</p> <p class="reference">References <a class="el" href="../../dc/da7/assert_8h_source.html#l00064">assert</a>, <a class="el" href="../../d6/d4f/shell_8c_source.html#l00047">buffer</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00075">fileDescriptor::cacheNode</a>, <a class="el" href="../../db/da9/include_2vfs_2vfs_8h_source.html#l00047">fdEof</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00072">vfs_mountPoint::fsInfo</a>, <a class="el" href="../../d1/de9/dirCache_8h_source.html#l00042">cacheNode::info</a>, <a class="el" href="../../dc/d94/armv6_2kpanic_8c_source.html#l00041">kpanic()</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00065">fileDescriptor::mp</a>, <a class="el" href="../../d6/d8a/fat__string_8h_source.html#l00017">NULL</a>, <a class="el" href="../../d1/de9/dirCache_8h_source.html#l00044">cacheNode::present</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00070">fileDescriptor::size</a>, and <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00067">fileDescriptor::status</a>.</p> <p class="reference">Referenced by <a class="el" href="../../dc/d20/directory_8c_source.html#l00064">addDirEntry()</a>, and <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00450">ubixfs_init()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d34/ubixfs_8c_acbf342e4662a8d4904cdb627dc995822_cgraph.png" border="0" usemap="#d2/d34/ubixfs_8c_acbf342e4662a8d4904cdb627dc995822_cgraph" alt=""/></div> <map name="d2/d34/ubixfs_8c_acbf342e4662a8d4904cdb627dc995822_cgraph" id="d2/d34/ubixfs_8c_acbf342e4662a8d4904cdb627dc995822_cgraph"> <area shape="rect" title=" " alt="" coords="5,5,96,32"/> <area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="144,5,204,32"/> </map> </div> </div> </div> <a id="a1d4159e0eb816b6b23c214d7c601dcb4"></a> <h2 class="memtitle"><span class="permalink"><a href="#a1d4159e0eb816b6b23c214d7c601dcb4">◆ </a></span>ubixfs_init()</h2> <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></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00450">450</a> of file <a class="el" href="../../d2/d34/ubixfs_8c_source.html">ubixfs.c</a>.</p> <p class="reference">References <a class="el" href="../../d6/d8a/fat__string_8h_source.html#l00017">NULL</a>, <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00192">readUbixFS()</a>, <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00371">ubixfs_initialize()</a>, and <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00229">writeUbixFS()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d34/ubixfs_8c_a1d4159e0eb816b6b23c214d7c601dcb4_cgraph.png" border="0" usemap="#d2/d34/ubixfs_8c_a1d4159e0eb816b6b23c214d7c601dcb4_cgraph" alt=""/></div> <map name="d2/d34/ubixfs_8c_a1d4159e0eb816b6b23c214d7c601dcb4_cgraph" id="d2/d34/ubixfs_8c_a1d4159e0eb816b6b23c214d7c601dcb4_cgraph"> <area shape="rect" title=" " alt="" coords="5,157,85,184"/> <area shape="rect" href="../../d2/d34/ubixfs_8c.html#acbf342e4662a8d4904cdb627dc995822" title=" " alt="" coords="143,81,234,108"/> <area shape="rect" href="../../d2/d34/ubixfs_8c.html#a32762e2563015d124909f3317c2a7423" title=" " alt="" coords="133,157,244,184"/> <area shape="rect" href="../../d2/d34/ubixfs_8c.html#ab4c558016c9b29b63d6f8c8ba5fe7384" title=" " alt="" coords="143,309,235,336"/> <area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="323,56,383,83"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#a150eab2ac4ce4553e21ca10e7f441762" title=" " alt="" coords="465,259,531,285"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="325,107,382,133"/> <area shape="rect" href="../../db/dff/dirCache_8c.html#a169a7d814e5ab80f123e5193a81b70b2" title=" " alt="" coords="292,157,415,184"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="719,120,793,147"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="842,95,933,121"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="841,145,933,172"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="471,56,525,83"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="467,107,529,133"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="465,5,531,32"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="585,56,667,83"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="581,107,671,133"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="594,157,658,184"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="591,5,661,32"/> <area shape="rect" href="../../da/d66/string_8h.html#a55e123beb3d7f96e25e024a13582d987" title=" " alt="" coords="469,208,527,235"/> <area shape="rect" href="../../de/d14/lib_8h.html#ae6c8de953239811a34eeeab09458e55e" title=" " alt="" coords="471,157,525,184"/> <area shape="rect" href="../../d3/d1c/block_8c.html#aa74ff712a9d02bb08f6421ce73358654" title=" " alt="" coords="300,360,407,387"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#aaa9ed6886459604cf73ccdbf6410e487" title=" " alt="" coords="328,411,379,437"/> <area shape="rect" href="../../da/d66/string_8h.html#a6f3dcb20ff11ff9db5904c3cfb61a38c" title=" " alt="" coords="322,259,385,285"/> <area shape="rect" href="../../d3/d1c/block_8c.html#a99dfa2e54401fafb70357a6632c4ef10" title=" " alt="" coords="463,360,533,387"/> </map> </div> </div> </div> <a id="a32762e2563015d124909f3317c2a7423"></a> <h2 class="memtitle"><span class="permalink"><a href="#a32762e2563015d124909f3317c2a7423">◆ </a></span>ubixfs_initialize()</h2> <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="../../d3/d57/structvfs__mountPoint.html">vfs_mountPoint</a> * </td> <td class="paramname"><em>mp</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00371">371</a> of file <a class="el" href="../../d2/d34/ubixfs_8c_source.html">ubixfs.c</a>.</p> <p class="reference">References <a class="el" href="../../dc/da7/assert_8h_source.html#l00064">assert</a>, <a class="el" href="../../d1/de9/dirCache_8h_source.html#l00047">cacheNode::attributes</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00128">ubixFSInfo::batEntries</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00126">ubixFSInfo::blockAllocationTable</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00070">vfs_mountPoint::device</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00037">device_node::devInfo</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00127">ubixFSInfo::dirCache</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00071">vfs_mountPoint::diskLabel</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00072">vfs_mountPoint::fsInfo</a>, <a class="el" href="../../d1/de9/dirCache_8h_source.html#l00042">cacheNode::info</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00051">device_interface::info</a>, <a class="el" href="../../d3/d1a/kmalloc_8c_source.html#l00241">kmalloc()</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00068">ubixDiskLabel::magicNum</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00069">ubixDiskLabel::magicNum2</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00073">vfs_mountPoint::partition</a>, <a class="el" href="../../db/d6d/structubixDiskLabel.html#aa97973cf7f0b67811080656e11c6385f">ubixDiskLabel::partitions</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00076">ubixDiskLabel::ubixPartitions::pBatSize</a>, <a class="el" href="../../d1/de9/dirCache_8h_source.html#l00048">cacheNode::permissions</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00074">ubixDiskLabel::ubixPartitions::pOffset</a>, <a class="el" href="../../d1/de9/dirCache_8h_source.html#l00044">cacheNode::present</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00052">device_interface::read</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00092">blockAllocationTableEntry::realSector</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00129">ubixFSInfo::rootDir</a>, <a class="el" href="../../d1/de9/dirCache_8h_source.html#l00043">cacheNode::size</a>, <a class="el" href="../../d1/de9/dirCache_8h_source.html#l00046">cacheNode::startCluster</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00041">UBIXDISKMAGIC</a>, and <a class="el" href="../../db/dff/dirCache_8c_source.html#l00193">ubixfs_cacheNew()</a>.</p> <p class="reference">Referenced by <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00450">ubixfs_init()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d34/ubixfs_8c_a32762e2563015d124909f3317c2a7423_cgraph.png" border="0" usemap="#d2/d34/ubixfs_8c_a32762e2563015d124909f3317c2a7423_cgraph" alt=""/></div> <map name="d2/d34/ubixfs_8c_a32762e2563015d124909f3317c2a7423_cgraph" id="d2/d34/ubixfs_8c_a32762e2563015d124909f3317c2a7423_cgraph"> <area shape="rect" title=" " alt="" coords="5,169,116,196"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#a150eab2ac4ce4553e21ca10e7f441762" title=" " alt="" coords="335,169,401,196"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="197,93,254,120"/> <area shape="rect" href="../../db/dff/dirCache_8c.html#a169a7d814e5ab80f123e5193a81b70b2" title=" " alt="" coords="164,220,287,247"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="587,107,661,133"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="710,81,801,108"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="709,132,801,159"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="341,107,395,133"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="337,5,399,32"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="335,56,401,83"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="453,56,535,83"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="449,107,539,133"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="462,157,526,184"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="459,5,529,32"/> <area shape="rect" href="../../da/d66/string_8h.html#a55e123beb3d7f96e25e024a13582d987" title=" " alt="" coords="339,220,397,247"/> <area shape="rect" href="../../de/d14/lib_8h.html#ae6c8de953239811a34eeeab09458e55e" title=" " alt="" coords="341,271,395,297"/> </map> </div> </div> </div> <a id="adfbafb62e063e24f4df09029862ba9d0"></a> <h2 class="memtitle"><span class="permalink"><a href="#adfbafb62e063e24f4df09029862ba9d0">◆ </a></span>ubixFSUnlink()</h2> <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="../../d3/d57/structvfs__mountPoint.html">vfs_mountPoint</a> * </td> <td class="paramname"><em>mp</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00306">306</a> of file <a class="el" href="../../d2/d34/ubixfs_8c_source.html">ubixfs.c</a>.</p> </div> </div> <a id="a65f42c9b6ca7c526642fa1c168272b03"></a> <h2 class="memtitle"><span class="permalink"><a href="#a65f42c9b6ca7c526642fa1c168272b03">◆ </a></span>writeFileByte()</h2> <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="../../d6/db4/include_2vfs_2file_8h.html#acc7b57f2d3766b4977ebbe64aa38608b">fileDescriptor_t</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> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00116">116</a> of file <a class="el" href="../../d2/d34/ubixfs_8c_source.html">ubixfs.c</a>.</p> <p class="reference">References <a class="el" href="../../dc/da7/assert_8h_source.html#l00064">assert</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00091">blockAllocationTableEntry::attributes</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00128">ubixFSInfo::batEntries</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00126">ubixFSInfo::blockAllocationTable</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00074">fileDescriptor::buffer</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00070">vfs_mountPoint::device</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00037">device_node::devInfo</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00071">vfs_mountPoint::diskLabel</a>, <a class="el" href="../../db/da9/include_2vfs_2vfs_8h_source.html#l00045">fdOpen</a>, <a class="el" href="../../db/da9/include_2vfs_2vfs_8h_source.html#l00046">fdRead</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00073">fileDescriptor::fileName</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00107">directoryEntry::fileName</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00072">vfs_mountPoint::fsInfo</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00051">device_interface::info</a>, <a class="el" href="../../d3/d1a/kmalloc_8c_source.html#l00342">kfree()</a>, <a class="el" href="../../d3/d1a/kmalloc_8c_source.html#l00241">kmalloc()</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00065">fileDescriptor::mp</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00093">blockAllocationTableEntry::nextBlock</a>, <a class="el" href="../../d6/d8a/fat__string_8h_source.html#l00017">NULL</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00073">vfs_mountPoint::partition</a>, <a class="el" href="../../db/d6d/structubixDiskLabel.html#aa97973cf7f0b67811080656e11c6385f">ubixDiskLabel::partitions</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00076">ubixDiskLabel::ubixPartitions::pBatSize</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00074">ubixDiskLabel::ubixPartitions::pOffset</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00052">device_interface::read</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00092">blockAllocationTableEntry::realSector</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00070">fileDescriptor::size</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00100">directoryEntry::size</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00072">fileDescriptor::start</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00067">fileDescriptor::status</a>, <a class="el" href="../../da/d66/string_8h.html#a6f3dcb20ff11ff9db5904c3cfb61a38c">strcmp()</a>, and <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00053">device_interface::write</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d34/ubixfs_8c_a65f42c9b6ca7c526642fa1c168272b03_cgraph.png" border="0" usemap="#d2/d34/ubixfs_8c_a65f42c9b6ca7c526642fa1c168272b03_cgraph" alt=""/></div> <map name="d2/d34/ubixfs_8c_a65f42c9b6ca7c526642fa1c168272b03_cgraph" id="d2/d34/ubixfs_8c_a65f42c9b6ca7c526642fa1c168272b03_cgraph"> <area shape="rect" title=" " alt="" coords="5,56,103,83"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#aaa9ed6886459604cf73ccdbf6410e487" title=" " alt="" coords="159,5,209,32"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#a150eab2ac4ce4553e21ca10e7f441762" title=" " alt="" coords="151,56,217,83"/> <area shape="rect" href="../../da/d66/string_8h.html#a6f3dcb20ff11ff9db5904c3cfb61a38c" title=" " alt="" coords="153,107,215,133"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="265,56,340,83"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="389,31,479,57"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="388,81,480,108"/> </map> </div> </div> </div> <a id="ab4c558016c9b29b63d6f8c8ba5fe7384"></a> <h2 class="memtitle"><span class="permalink"><a href="#ab4c558016c9b29b63d6f8c8ba5fe7384">◆ </a></span>writeUbixFS()</h2> <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="../../d6/db4/include_2vfs_2file_8h.html#acc7b57f2d3766b4977ebbe64aa38608b">fileDescriptor_t</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> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00229">229</a> of file <a class="el" href="../../d2/d34/ubixfs_8c_source.html">ubixfs.c</a>.</p> <p class="reference">References <a class="el" href="../../dc/da7/assert_8h_source.html#l00064">assert</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00126">ubixFSInfo::blockAllocationTable</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00043">blockSize</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00074">fileDescriptor::buffer</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00070">vfs_mountPoint::device</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00037">device_node::devInfo</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00071">vfs_mountPoint::diskLabel</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00045">EOBC</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00073">fileDescriptor::fileName</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00107">directoryEntry::fileName</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00072">vfs_mountPoint::fsInfo</a>, <a class="el" href="../../d3/d1c/block_8c_source.html#l00095">getFreeBlocks()</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00051">device_interface::info</a>, <a class="el" href="../../d3/d1a/kmalloc_8c_source.html#l00342">kfree()</a>, <a class="el" href="../../d3/d1a/kmalloc_8c_source.html#l00241">kmalloc()</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00065">fileDescriptor::mp</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00093">blockAllocationTableEntry::nextBlock</a>, <a class="el" href="../../d6/d8a/fat__string_8h_source.html#l00017">NULL</a>, <a class="el" href="../../d2/d29/mount_8h_source.html#l00073">vfs_mountPoint::partition</a>, <a class="el" href="../../db/d6d/structubixDiskLabel.html#aa97973cf7f0b67811080656e11c6385f">ubixDiskLabel::partitions</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00074">ubixDiskLabel::ubixPartitions::pOffset</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00052">device_interface::read</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00092">blockAllocationTableEntry::realSector</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00070">fileDescriptor::size</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00100">directoryEntry::size</a>, <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00072">fileDescriptor::start</a>, <a class="el" href="../../d9/d32/include_2ubixfs_2ubixfs_8h_source.html#l00099">directoryEntry::startCluster</a>, <a class="el" href="../../da/d66/string_8h.html#a6f3dcb20ff11ff9db5904c3cfb61a38c">strcmp()</a>, and <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00053">device_interface::write</a>.</p> <p class="reference">Referenced by <a class="el" href="../../dc/d20/directory_8c_source.html#l00064">addDirEntry()</a>, and <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00450">ubixfs_init()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d34/ubixfs_8c_ab4c558016c9b29b63d6f8c8ba5fe7384_cgraph.png" border="0" usemap="#d2/d34/ubixfs_8c_ab4c558016c9b29b63d6f8c8ba5fe7384_cgraph" alt=""/></div> <map name="d2/d34/ubixfs_8c_ab4c558016c9b29b63d6f8c8ba5fe7384_cgraph" id="d2/d34/ubixfs_8c_ab4c558016c9b29b63d6f8c8ba5fe7384_cgraph"> <area shape="rect" title=" " alt="" coords="5,81,97,108"/> <area shape="rect" href="../../d3/d1c/block_8c.html#aa74ff712a9d02bb08f6421ce73358654" title=" " alt="" coords="145,5,252,32"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#aaa9ed6886459604cf73ccdbf6410e487" title=" " alt="" coords="173,56,224,83"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#a150eab2ac4ce4553e21ca10e7f441762" title=" " alt="" coords="165,107,232,133"/> <area shape="rect" href="../../da/d66/string_8h.html#a6f3dcb20ff11ff9db5904c3cfb61a38c" title=" " alt="" coords="167,157,230,184"/> <area shape="rect" href="../../d3/d1c/block_8c.html#a99dfa2e54401fafb70357a6632c4ef10" title=" " alt="" coords="302,5,373,32"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="300,107,375,133"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="423,81,514,108"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="423,132,515,159"/> </map> </div> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="../../dir_97b3d2b63ac216821c2d7a22ee0ab2b0.html">fs</a></li><li class="navelem"><a class="el" href="../../dir_6f2fca2f009cc310f5e5847ec35b89ed.html">ubixfs</a></li><li class="navelem"><a class="el" href="../../d2/d34/ubixfs_8c.html">ubixfs.c</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li> </ul> </div> </body> </html>