<!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> <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#l00040">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#l00042">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="def_8h-source.html#l00041">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>. </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="shell_8c-source.html#l00047">buffer</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#l00042">vfs_mountPoint::fsInfo</a>, <a class="el" href="dirCache_8h-source.html#l00014">cacheNode::info</a>, <a class="el" href="kpanic_8c-source.html#l00044">kpanic()</a>, <a class="el" href="file_8h-source.html#l00049">fileDescriptorStruct::mp</a>, <a class="el" href="def_8h-source.html#l00041">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>. </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#l00044">kpanic()</a>, <a class="el" href="def_8h-source.html#l00041">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>. </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#l00040">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#l00041">vfs_mountPoint::diskLabel</a>, <a class="el" href="mount_8h-source.html#l00042">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#l00043">vfs_mountPoint::partition</a>, <a class="el" href="structubixDiskLabel.html#ff8b4b31a8831b4cbc95c86745313895">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>. </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#l00040">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#l00041">vfs_mountPoint::diskLabel</a>, <a class="el" href="mount_8h-source.html#l00042">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="def_8h-source.html#l00041">NULL</a>, <a class="el" href="mount_8h-source.html#l00043">vfs_mountPoint::partition</a>, <a class="el" href="structubixDiskLabel.html#ff8b4b31a8831b4cbc95c86745313895">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#l00040">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#l00041">vfs_mountPoint::diskLabel</a>, <a class="el" href="ubixfs_8h-source.html#l00112">directoryEntry::fileName</a>, <a class="el" href="mount_8h-source.html#l00042">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#l00043">vfs_mountPoint::partition</a>, <a class="el" href="structubixDiskLabel.html#ff8b4b31a8831b4cbc95c86745313895">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>. </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#l00041">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#l00042">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="def_8h-source.html#l00041">NULL</a>, <a class="el" href="mount_8h-source.html#l00043">vfs_mountPoint::partition</a>, <a class="el" href="structubixDiskLabel.html#ff8b4b31a8831b4cbc95c86745313895">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#l00040">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#l00041">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#l00042">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="def_8h-source.html#l00041">NULL</a>, <a class="el" href="mount_8h-source.html#l00043">vfs_mountPoint::partition</a>, <a class="el" href="structubixDiskLabel.html#ff8b4b31a8831b4cbc95c86745313895">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>. </div> </div><p> <hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 08:52:16 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>