<?xml version='1.0' encoding='iso-8859-1' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.4.7">
  <compounddef id="ubixfs_8c" kind="file">
    <compoundname>ubixfs.c</compoundname>
    <includes refid="ubixfs_8h" local="no">ubixfs/ubixfs.h</includes>
    <includes refid="dirCache_8h" local="no">ubixfs/dirCache.h</includes>
    <includes refid="vfs_8h" local="no">vfs/vfs.h</includes>
    <includes refid="types_8h" local="no">ubixos/types.h</includes>
    <includes refid="sched_8h" local="no">ubixos/sched.h</includes>
    <includes refid="kpanic_8h" local="no">ubixos/kpanic.h</includes>
    <includes refid="exec_8h" local="no">ubixos/exec.h</includes>
    <includes refid="kmalloc_8h" local="no">lib/kmalloc.h</includes>
    <includes refid="lib_2string_8h" local="no">lib/string.h</includes>
    <includes refid="kprintf_8h" local="no">lib/kprintf.h</includes>
    <includes refid="assert_8h" local="no">assert.h</includes>
    <incdepgraph>
      <node id="5985">
        <label>sys/thread.h</label>
        <link refid="thread_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
      </node>
      <node id="5991">
        <label>ubixos/kpanic.h</label>
        <link refid="kpanic_8h"/>
      </node>
      <node id="5988">
        <label>ubixos/sched.h</label>
        <link refid="sched_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
        <childnode refid="5989" relation="include">
        </childnode>
        <childnode refid="5980" relation="include">
        </childnode>
        <childnode refid="5990" relation="include">
        </childnode>
        <childnode refid="5985" relation="include">
        </childnode>
      </node>
      <node id="5977">
        <label>ubixos/types.h</label>
        <link refid="types_8h"/>
        <childnode refid="5978" relation="include">
        </childnode>
      </node>
      <node id="5978">
        <label>sys/_types.h</label>
        <link refid="__types_8h"/>
      </node>
      <node id="5994">
        <label>lib/string.h</label>
        <link refid="lib_2string_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
      </node>
      <node id="5980">
        <label>vfs/file.h</label>
        <link refid="file_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
        <childnode refid="5981" relation="include">
        </childnode>
        <childnode refid="5982" relation="include">
        </childnode>
      </node>
      <node id="5990">
        <label>sys/tss.h</label>
        <link refid="tss_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
      </node>
      <node id="5993">
        <label>lib/kmalloc.h</label>
        <link refid="kmalloc_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
      </node>
      <node id="5987">
        <label>mpi/mpi.h</label>
        <link refid="mpi_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
        <childnode refid="5988" relation="include">
        </childnode>
      </node>
      <node id="5975">
        <label>src/sys/ubixfs/ubixfs.c</label>
        <link refid="ubixfs.c"/>
        <childnode refid="5976" relation="include">
        </childnode>
        <childnode refid="5981" relation="include">
        </childnode>
        <childnode refid="5979" relation="include">
        </childnode>
        <childnode refid="5977" relation="include">
        </childnode>
        <childnode refid="5988" relation="include">
        </childnode>
        <childnode refid="5991" relation="include">
        </childnode>
        <childnode refid="5992" relation="include">
        </childnode>
        <childnode refid="5993" relation="include">
        </childnode>
        <childnode refid="5994" relation="include">
        </childnode>
        <childnode refid="5995" relation="include">
        </childnode>
        <childnode refid="5996" relation="include">
        </childnode>
      </node>
      <node id="5979">
        <label>vfs/vfs.h</label>
        <link refid="vfs_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
        <childnode refid="5980" relation="include">
        </childnode>
        <childnode refid="5982" relation="include">
        </childnode>
        <childnode refid="5983" relation="include">
        </childnode>
        <childnode refid="5985" relation="include">
        </childnode>
      </node>
      <node id="5982">
        <label>vfs/mount.h</label>
        <link refid="mount_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
      </node>
      <node id="5995">
        <label>lib/kprintf.h</label>
        <link refid="kprintf_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
      </node>
      <node id="5976">
        <label>ubixfs/ubixfs.h</label>
        <link refid="ubixfs_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
        <childnode refid="5979" relation="include">
        </childnode>
        <childnode refid="5986" relation="include">
        </childnode>
        <childnode refid="5987" relation="include">
        </childnode>
        <childnode refid="5981" relation="include">
        </childnode>
      </node>
      <node id="5996">
        <label>assert.h</label>
        <link refid="assert_8h"/>
      </node>
      <node id="5981">
        <label>ubixfs/dirCache.h</label>
        <link refid="dirCache_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
      </node>
      <node id="5992">
        <label>ubixos/exec.h</label>
        <link refid="exec_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
        <childnode refid="5988" relation="include">
        </childnode>
      </node>
      <node id="5983">
        <label>sys/sysproto.h</label>
        <link refid="sysproto_8h"/>
        <childnode refid="5984" relation="include">
        </childnode>
        <childnode refid="5985" relation="include">
        </childnode>
      </node>
      <node id="5984">
        <label>sys/signal.h</label>
        <link refid="signal_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
      </node>
      <node id="5989">
        <label>ubixos/tty.h</label>
        <link refid="tty_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
      </node>
      <node id="5986">
        <label>sys/device.h</label>
        <link refid="device_8h"/>
        <childnode refid="5977" relation="include">
        </childnode>
      </node>
    </incdepgraph>
      <sectiondef kind="func">
      <memberdef kind="function" id="ubixfs_8c_10ab17f87a44bc7bb7ee3c76262f80e94" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int openFileUbixFS</definition>
        <argsstring>(const char *file, fileDescriptor *fd)</argsstring>
        <name>openFileUbixFS</name>
        <param>
          <type>const char *</type>
          <declname>file</declname>
        </param>
        <param>
          <type><ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref> *</type>
          <declname>fd</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" line="46" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" bodystart="46" bodyend="116"/>
        <references refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" compoundref="assert_8h" startline="64">assert</references>
        <references refid="structfileDescriptorStruct_10222d37f7abbfbf02d84c98a9a532c33" compoundref="file_8h" startline="59">fileDescriptorStruct::cacheNode</references>
        <references refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" compoundref="mount_8h" startline="39">vfs_mountPoint::device</references>
        <references refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" compoundref="device_8h" startline="38">device_node::devInfo</references>
        <references refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" compoundref="ubixfs_8h" startline="132">ubixFSInfo::dirCache</references>
        <references refid="vfs_8h_1e8e814536103f514b8460ec7a0fc4553" compoundref="vfs_8h" startline="46">fileRead</references>
        <references refid="vfs_8h_14898b5a1a1daebda9d11b4afde062e5c" compoundref="vfs_8h" startline="47">fileWrite</references>
        <references refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" compoundref="mount_8h" startline="41">vfs_mountPoint::fsInfo</references>
        <references refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" compoundref="dirCache_8h" startline="14">cacheNode::info</references>
        <references refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" compoundref="kmalloc_8c" startline="247" endline="339">kmalloc</references>
        <references refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" compoundref="kprintf_8c" startline="38" endline="49">kprintf</references>
        <references refid="structfileDescriptorStruct_18c43ddd6ff5fd5383bcdde5896846e98" compoundref="file_8h" startline="51">fileDescriptorStruct::mode</references>
        <references refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" compoundref="file_8h" startline="49">fileDescriptorStruct::mp</references>
        <references refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="types_8h" startline="36">NULL</references>
        <references refid="structcacheNode_11eccf5ffd0b1a3479e0e630373cff5af" compoundref="dirCache_8h" startline="20">cacheNode::permissions</references>
        <references refid="structfileDescriptorStruct_111626b5d99a5da968f43bc37d2591c5c" compoundref="file_8h" startline="60">fileDescriptorStruct::perms</references>
        <references refid="structcacheNode_18b26b1b3dbe3f8cb72627e09e6c8e353" compoundref="dirCache_8h" startline="16">cacheNode::present</references>
        <references refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb">device_interface::read</references>
        <references refid="structfileDescriptorStruct_197eb3dcefe53610658dc341ca449e290" compoundref="file_8h" startline="53">fileDescriptorStruct::size</references>
        <references refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" compoundref="dirCache_8h" startline="15">cacheNode::size</references>
        <references refid="structfileDescriptorStruct_174b5825aa688ae7936fc0492743ae372" compoundref="file_8h" startline="55">fileDescriptorStruct::start</references>
        <references refid="structcacheNode_1a3fa99dfac99663d5448d74594120521" compoundref="dirCache_8h" startline="18">cacheNode::startCluster</references>
        <references refid="ubixfs_8h_1bd7a711afb8ae672c3e08a9308d06c5b" compoundref="ubixfs_8h" startline="41">UBIXFS_ALIGN</references>
        <references refid="dirCache_8h_1d136be51f0e49671914a4f0db3bb2314" compoundref="dirCache_8c" startline="55" endline="182">ubixfs_cacheFind</references>
        <references refid="ubixfs_8c_1ec127f9c4f26d2021e637f5f92ef8e12" compoundref="ubixfs_8c" startline="341" endline="364">ubixfs_loadData</references>
        <references refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" compoundref="ap-boot_8S" startline="6">x1</references>
        <referencedby refid="ubixfs_8c_11d4159e0eb816b6b23c214d7c601dcb4" compoundref="ubixfs_8c" startline="456" endline="480">ubixfs_init</referencedby>
      </memberdef>
      <memberdef kind="function" id="ubixfs_8c_151f5dd233a9470dd0254bb0d0e435b8d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int readUbixFS</definition>
        <argsstring>(fileDescriptor *fd, char *data, uInt32 offset, long size)</argsstring>
        <name>readUbixFS</name>
        <param>
          <type><ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref> *</type>
          <declname>fd</declname>
        </param>
        <param>
          <type>char *</type>
          <declname>data</declname>
        </param>
        <param>
          <type><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref></type>
          <declname>offset</declname>
        </param>
        <param>
          <type>long</type>
          <declname>size</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" line="194" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" bodystart="194" bodyend="222"/>
        <references refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" compoundref="assert_8h" startline="64">assert</references>
        <references refid="structfileDescriptorStruct_10222d37f7abbfbf02d84c98a9a532c33" compoundref="file_8h" startline="59">fileDescriptorStruct::cacheNode</references>
        <references refid="vfs_8h_14907ecb6121af1b80c5c5b436ebe3cb5" compoundref="vfs_8h" startline="43">fdEof</references>
        <references refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" compoundref="mount_8h" startline="41">vfs_mountPoint::fsInfo</references>
        <references refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" compoundref="dirCache_8h" startline="14">cacheNode::info</references>
        <references refid="kpanic_8h_1db9a182aa071791a306163d50d653deb" compoundref="kpanic_8c" startline="42" endline="60">kpanic</references>
        <references refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" compoundref="file_8h" startline="49">fileDescriptorStruct::mp</references>
        <references refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="types_8h" startline="36">NULL</references>
        <references refid="structcacheNode_18b26b1b3dbe3f8cb72627e09e6c8e353" compoundref="dirCache_8h" startline="16">cacheNode::present</references>
        <references refid="structfileDescriptorStruct_197eb3dcefe53610658dc341ca449e290" compoundref="file_8h" startline="53">fileDescriptorStruct::size</references>
        <references refid="structfileDescriptorStruct_1dd78e2b569c4813dc1b171f4203f3e6b" compoundref="file_8h" startline="50">fileDescriptorStruct::status</references>
        <referencedby refid="directory_8c_1756e1f497c4d9fed64ac0a2256f9fa46" compoundref="directory_8c" startline="66" endline="91">addDirEntry</referencedby>
        <referencedby refid="ubixfs_8c_11d4159e0eb816b6b23c214d7c601dcb4" compoundref="ubixfs_8c" startline="456" endline="480">ubixfs_init</referencedby>
      </memberdef>
      <memberdef kind="function" id="ubixfs_8c_11d4159e0eb816b6b23c214d7c601dcb4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int ubixfs_init</definition>
        <argsstring>()</argsstring>
        <name>ubixfs_init</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" line="456" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" bodystart="456" bodyend="480"/>
        <references refid="kpanic_8h_1db9a182aa071791a306163d50d653deb" compoundref="kpanic_8c" startline="42" endline="60">kpanic</references>
        <references refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="types_8h" startline="36">NULL</references>
        <references refid="ubixfs_8c_10ab17f87a44bc7bb7ee3c76262f80e94" compoundref="ubixfs_8c" startline="46" endline="116">openFileUbixFS</references>
        <references refid="ubixfs_8h_13882cc85dc373eba13315dfb0da4c578" compoundref="ubixfs_8c" startline="194" endline="222">readUbixFS</references>
        <references refid="ubixfs_8h_12c53ad6e6ce2e149eec9b5361dd10eda">ubixfs_initialize</references>
        <references refid="ubixfs_8h_1a3a7f1d4d6f7d2477798e933acf2cb3f" compoundref="directory_8c" startline="94" endline="127">ubixFSmkDir</references>
        <references refid="ubixfs_8h_1dfbafb62e063e24f4df09029862ba9d0" compoundref="ubixfs_8c" startline="309" endline="326">ubixFSUnlink</references>
        <references refid="vfs_8h_18652b1ccbcf7d2a872c5781640f7d59a" compoundref="vfs_8c" startline="81" endline="138">vfsRegisterFS</references>
        <references refid="ubixfs_8h_1ba0435c266346dd10ac3cbc68655b20c" compoundref="ubixfs_8c" startline="232" endline="307">writeUbixFS</references>
        <references refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" compoundref="ap-boot_8S" startline="6">x1</references>
      </memberdef>
      <memberdef kind="function" id="ubixfs_8c_132762e2563015d124909f3317c2a7423" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int ubixfs_initialize</definition>
        <argsstring>(struct vfs_mountPoint *mp)</argsstring>
        <name>ubixfs_initialize</name>
        <param>
          <type>struct <ref refid="structvfs__mountPoint" kindref="compound">vfs_mountPoint</ref> *</type>
          <declname>mp</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" line="376" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" bodystart="376" bodyend="442"/>
        <references refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" compoundref="assert_8h" startline="64">assert</references>
        <references refid="structcacheNode_176defc9430363558ce5a96f72fa7b1d4" compoundref="dirCache_8h" startline="19">cacheNode::attributes</references>
        <references refid="structubixFSInfo_14f530e266f49e0310c763653399dafa2" compoundref="ubixfs_8h" startline="133">ubixFSInfo::batEntries</references>
        <references refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" compoundref="ubixfs_8h" startline="131">ubixFSInfo::blockAllocationTable</references>
        <references refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" compoundref="mount_8h" startline="39">vfs_mountPoint::device</references>
        <references refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" compoundref="device_8h" startline="38">device_node::devInfo</references>
        <references refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" compoundref="ubixfs_8h" startline="132">ubixFSInfo::dirCache</references>
        <references refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" compoundref="mount_8h" startline="40">vfs_mountPoint::diskLabel</references>
        <references refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" compoundref="mount_8h" startline="41">vfs_mountPoint::fsInfo</references>
        <references refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" compoundref="dirCache_8h" startline="14">cacheNode::info</references>
        <references refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" compoundref="device_8h" startline="52">device_interface::info</references>
        <references refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" compoundref="kmalloc_8c" startline="247" endline="339">kmalloc</references>
        <references refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" compoundref="kprintf_8c" startline="38" endline="49">kprintf</references>
        <references refid="structubixDiskLabel_12eea14a0546c7de19d53b3784e623463" compoundref="ubixfs_8h" startline="72">ubixDiskLabel::magicNum</references>
        <references refid="structubixDiskLabel_195fd8a0ea36a8b3de597b92c8ebe0dce" compoundref="ubixfs_8h" startline="73">ubixDiskLabel::magicNum2</references>
        <references refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" compoundref="mount_8h" startline="42">vfs_mountPoint::partition</references>
        <references refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f">ubixDiskLabel::partitions</references>
        <references refid="structubixDiskLabel_1_1ubixPartitions_16a02392928bd127ff780dd656dc88203" compoundref="ubixfs_8h" startline="80">ubixDiskLabel::ubixPartitions::pBatSize</references>
        <references refid="structcacheNode_11eccf5ffd0b1a3479e0e630373cff5af" compoundref="dirCache_8h" startline="20">cacheNode::permissions</references>
        <references refid="structcacheNode_18b26b1b3dbe3f8cb72627e09e6c8e353" compoundref="dirCache_8h" startline="16">cacheNode::present</references>
        <references refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb">device_interface::read</references>
        <references refid="structubixFSInfo_18c58076e25df4115ed42bebce08d5181" compoundref="ubixfs_8h" startline="134">ubixFSInfo::rootDir</references>
        <references refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" compoundref="dirCache_8h" startline="15">cacheNode::size</references>
        <references refid="structcacheNode_1a3fa99dfac99663d5448d74594120521" compoundref="dirCache_8h" startline="18">cacheNode::startCluster</references>
        <references refid="ubixfs_8h_11b1ab97d6d5dfbfb20f0f80d7c625941" compoundref="ubixfs_8h" startline="43">UBIXDISKMAGIC</references>
        <references refid="dirCache_8h_1adfffea5ad577cecdfbc4eb7989cf193" compoundref="dirCache_8c" startline="185" endline="199">ubixfs_cacheNew</references>
        <references refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" compoundref="ap-boot_8S" startline="6">x1</references>
      </memberdef>
      <memberdef kind="function" id="ubixfs_8c_1ec127f9c4f26d2021e637f5f92ef8e12" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>static int ubixfs_loadData</definition>
        <argsstring>(fileDescriptor *fd, char *data, uInt32 size, uInt32 batIndex)</argsstring>
        <name>ubixfs_loadData</name>
        <param>
          <type><ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref> *</type>
          <declname>fd</declname>
        </param>
        <param>
          <type>char *</type>
          <declname>data</declname>
        </param>
        <param>
          <type><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref></type>
          <declname>size</declname>
        </param>
        <param>
          <type><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref></type>
          <declname>batIndex</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" line="43" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" bodystart="341" bodyend="364"/>
        <references refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" compoundref="assert_8h" startline="64">assert</references>
        <references refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" compoundref="ubixfs_8h" startline="131">ubixFSInfo::blockAllocationTable</references>
        <references refid="ubixfs_8h_1d4eebb29e7c75230c032b1e6f71e061d" compoundref="ubixfs_8h" startline="45">blockSize</references>
        <references refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" compoundref="mount_8h" startline="39">vfs_mountPoint::device</references>
        <references refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" compoundref="device_8h" startline="38">device_node::devInfo</references>
        <references refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" compoundref="mount_8h" startline="40">vfs_mountPoint::diskLabel</references>
        <references refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" compoundref="mount_8h" startline="41">vfs_mountPoint::fsInfo</references>
        <references refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" compoundref="device_8h" startline="52">device_interface::info</references>
        <references refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" compoundref="file_8h" startline="49">fileDescriptorStruct::mp</references>
        <references refid="structblockAllocationTableEntry_1db5281b505d283f4d43d09e327b63c63" compoundref="ubixfs_8h" startline="98">blockAllocationTableEntry::nextBlock</references>
        <references refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="types_8h" startline="36">NULL</references>
        <references refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" compoundref="mount_8h" startline="42">vfs_mountPoint::partition</references>
        <references refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f">ubixDiskLabel::partitions</references>
        <references refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb">device_interface::read</references>
        <references refid="structblockAllocationTableEntry_147b0210bbfb05977d7d5fed3b24718b4" compoundref="ubixfs_8h" startline="97">blockAllocationTableEntry::realSector</references>
        <references refid="ubixfs_8h_1bd7a711afb8ae672c3e08a9308d06c5b" compoundref="ubixfs_8h" startline="41">UBIXFS_ALIGN</references>
        <references refid="ubixfs_8h_1dab92bc23023fba8f349eb34bf5acf46" compoundref="ubixfs_8h" startline="40">UBIXFS_BLOCKSIZE_BYTES</references>
        <referencedby refid="ubixfs_8c_10ab17f87a44bc7bb7ee3c76262f80e94" compoundref="ubixfs_8c" startline="46" endline="116">openFileUbixFS</referencedby>
      </memberdef>
      <memberdef kind="function" id="ubixfs_8c_1dfbafb62e063e24f4df09029862ba9d0" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void ubixFSUnlink</definition>
        <argsstring>(char *path, struct vfs_mountPoint *mp)</argsstring>
        <name>ubixFSUnlink</name>
        <param>
          <type>char *</type>
          <declname>path</declname>
        </param>
        <param>
          <type>struct <ref refid="structvfs__mountPoint" kindref="compound">vfs_mountPoint</ref> *</type>
          <declname>mp</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" line="309" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" bodystart="309" bodyend="326"/>
        <references refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" compoundref="ubixfs_8h" startline="131">ubixFSInfo::blockAllocationTable</references>
        <references refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" compoundref="mount_8h" startline="39">vfs_mountPoint::device</references>
        <references refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" compoundref="device_8h" startline="38">device_node::devInfo</references>
        <references refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" compoundref="mount_8h" startline="40">vfs_mountPoint::diskLabel</references>
        <references refid="structdirectoryEntry_161e77c256eaf6c4e7fe56d2574f16f98" compoundref="ubixfs_8h" startline="112">directoryEntry::fileName</references>
        <references refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" compoundref="mount_8h" startline="41">vfs_mountPoint::fsInfo</references>
        <references refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" compoundref="device_8h" startline="52">device_interface::info</references>
        <references refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" compoundref="kmalloc_8c" startline="247" endline="339">kmalloc</references>
        <references refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" compoundref="kprintf_8c" startline="38" endline="49">kprintf</references>
        <references refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" compoundref="mount_8h" startline="42">vfs_mountPoint::partition</references>
        <references refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f">ubixDiskLabel::partitions</references>
        <references refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb">device_interface::read</references>
        <references refid="structubixFSInfo_18c58076e25df4115ed42bebce08d5181" compoundref="ubixfs_8h" startline="134">ubixFSInfo::rootDir</references>
        <references refid="lib_2string_8h_16f3dcb20ff11ff9db5904c3cfb61a38c" compoundref="string_8c" startline="32" endline="46">strcmp</references>
        <references refid="ubixfs_8h_1b0df352296e0f22896675aba0aa11b6e" compoundref="ubixfs_8h" startline="54">typeDeleted</references>
        <references refid="structdevice__interface_1f46913eec9f191290c82db23380bc5df">device_interface::write</references>
        <references refid="ap-boot_8S_1f78b91f02427adef14bb8b28aa93baa5" compoundref="ap-boot_8S" startline="52">x1000</references>
        <referencedby refid="ubixfs_8c_11d4159e0eb816b6b23c214d7c601dcb4" compoundref="ubixfs_8c" startline="456" endline="480">ubixfs_init</referencedby>
      </memberdef>
      <memberdef kind="function" id="ubixfs_8c_14c7f9c50f698ab4cdde8655aaf6363aa" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int writeFileByte</definition>
        <argsstring>(int ch, fileDescriptor *fd, long offset)</argsstring>
        <name>writeFileByte</name>
        <param>
          <type>int</type>
          <declname>ch</declname>
        </param>
        <param>
          <type><ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref> *</type>
          <declname>fd</declname>
        </param>
        <param>
          <type>long</type>
          <declname>offset</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" line="118" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" bodystart="118" bodyend="189"/>
        <references refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" compoundref="assert_8h" startline="64">assert</references>
        <references refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" compoundref="ubixfs_8h" startline="131">ubixFSInfo::blockAllocationTable</references>
        <references refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" compoundref="mount_8h" startline="40">vfs_mountPoint::diskLabel</references>
        <references refid="vfs_8h_1249a3d8cdfed3302062ad215b95a4294" compoundref="vfs_8h" startline="41">fdOpen</references>
        <references refid="vfs_8h_1a461f4419baab36cdd1143cd0fe66e0e" compoundref="vfs_8h" startline="42">fdRead</references>
        <references refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" compoundref="mount_8h" startline="41">vfs_mountPoint::fsInfo</references>
        <references refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" compoundref="file_8h" startline="49">fileDescriptorStruct::mp</references>
        <references refid="structblockAllocationTableEntry_1db5281b505d283f4d43d09e327b63c63" compoundref="ubixfs_8h" startline="98">blockAllocationTableEntry::nextBlock</references>
        <references refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="types_8h" startline="36">NULL</references>
        <references refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" compoundref="mount_8h" startline="42">vfs_mountPoint::partition</references>
        <references refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f">ubixDiskLabel::partitions</references>
        <references refid="structubixDiskLabel_1_1ubixPartitions_16a02392928bd127ff780dd656dc88203" compoundref="ubixfs_8h" startline="80">ubixDiskLabel::ubixPartitions::pBatSize</references>
        <references refid="structfileDescriptorStruct_174b5825aa688ae7936fc0492743ae372" compoundref="file_8h" startline="55">fileDescriptorStruct::start</references>
        <references refid="structfileDescriptorStruct_1dd78e2b569c4813dc1b171f4203f3e6b" compoundref="file_8h" startline="50">fileDescriptorStruct::status</references>
      </memberdef>
      <memberdef kind="function" id="ubixfs_8c_1ba0435c266346dd10ac3cbc68655b20c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int writeUbixFS</definition>
        <argsstring>(fileDescriptor *fd, char *data, long offset, long size)</argsstring>
        <name>writeUbixFS</name>
        <param>
          <type><ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref> *</type>
          <declname>fd</declname>
        </param>
        <param>
          <type>char *</type>
          <declname>data</declname>
        </param>
        <param>
          <type>long</type>
          <declname>offset</declname>
        </param>
        <param>
          <type>long</type>
          <declname>size</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" line="232" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c" bodystart="232" bodyend="307"/>
        <references refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" compoundref="assert_8h" startline="64">assert</references>
        <references refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" compoundref="ubixfs_8h" startline="131">ubixFSInfo::blockAllocationTable</references>
        <references refid="ubixfs_8h_1d4eebb29e7c75230c032b1e6f71e061d" compoundref="ubixfs_8h" startline="45">blockSize</references>
        <references refid="structfileDescriptorStruct_1cbc0897e87c2c167cdb8cb1beb77f598" compoundref="file_8h" startline="57">fileDescriptorStruct::buffer</references>
        <references refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" compoundref="mount_8h" startline="39">vfs_mountPoint::device</references>
        <references refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" compoundref="device_8h" startline="38">device_node::devInfo</references>
        <references refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" compoundref="mount_8h" startline="40">vfs_mountPoint::diskLabel</references>
        <references refid="ubixfs_8h_19c66702437ce6449d7886b4dbaad3c02" compoundref="ubixfs_8h" startline="48">EOBC</references>
        <references refid="structfileDescriptorStruct_14ca84ca208f0bcd97d654f99a55724f6" compoundref="file_8h" startline="56">fileDescriptorStruct::fileName</references>
        <references refid="structdirectoryEntry_161e77c256eaf6c4e7fe56d2574f16f98" compoundref="ubixfs_8h" startline="112">directoryEntry::fileName</references>
        <references refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" compoundref="mount_8h" startline="41">vfs_mountPoint::fsInfo</references>
        <references refid="ubixfs_8h_1d2880707d0f942f5119f946db4e13e4e" compoundref="block_8c" startline="96" endline="124">getFreeBlocks</references>
        <references refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" compoundref="device_8h" startline="52">device_interface::info</references>
        <references refid="kmalloc_8h_1aa9ed6886459604cf73ccdbf6410e487" compoundref="kmalloc_8c" startline="351" endline="391">kfree</references>
        <references refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" compoundref="kmalloc_8c" startline="247" endline="339">kmalloc</references>
        <references refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" compoundref="file_8h" startline="49">fileDescriptorStruct::mp</references>
        <references refid="structblockAllocationTableEntry_1db5281b505d283f4d43d09e327b63c63" compoundref="ubixfs_8h" startline="98">blockAllocationTableEntry::nextBlock</references>
        <references refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="types_8h" startline="36">NULL</references>
        <references refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" compoundref="mount_8h" startline="42">vfs_mountPoint::partition</references>
        <references refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f">ubixDiskLabel::partitions</references>
        <references refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb">device_interface::read</references>
        <references refid="structblockAllocationTableEntry_147b0210bbfb05977d7d5fed3b24718b4" compoundref="ubixfs_8h" startline="97">blockAllocationTableEntry::realSector</references>
        <references refid="structdirectoryEntry_19571030f709f6926b925e552660a65ab" compoundref="ubixfs_8h" startline="105">directoryEntry::size</references>
        <references refid="structfileDescriptorStruct_197eb3dcefe53610658dc341ca449e290" compoundref="file_8h" startline="53">fileDescriptorStruct::size</references>
        <references refid="structfileDescriptorStruct_174b5825aa688ae7936fc0492743ae372" compoundref="file_8h" startline="55">fileDescriptorStruct::start</references>
        <references refid="structdirectoryEntry_183e91977e7db1dc36d3e81183ac8965c" compoundref="ubixfs_8h" startline="104">directoryEntry::startCluster</references>
        <references refid="lib_2string_8h_16f3dcb20ff11ff9db5904c3cfb61a38c" compoundref="string_8c" startline="32" endline="46">strcmp</references>
        <references refid="structdevice__interface_1f46913eec9f191290c82db23380bc5df">device_interface::write</references>
        <references refid="ap-boot_8S_1f78b91f02427adef14bb8b28aa93baa5" compoundref="ap-boot_8S" startline="52">x1000</references>
        <referencedby refid="directory_8c_1756e1f497c4d9fed64ac0a2256f9fa46" compoundref="directory_8c" startline="66" endline="91">addDirEntry</referencedby>
        <referencedby refid="ubixfs_8c_11d4159e0eb816b6b23c214d7c601dcb4" compoundref="ubixfs_8c" startline="456" endline="480">ubixfs_init</referencedby>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="comment">/*****************************************************************************************</highlight></codeline>
<codeline lineno="2"><highlight class="comment"><sp/>Copyright<sp/>(c)<sp/>2002-2004<sp/>The<sp/>UbixOS<sp/>Project</highlight></codeline>
<codeline lineno="3"><highlight class="comment"><sp/>All<sp/>rights<sp/>reserved.</highlight></codeline>
<codeline lineno="4"><highlight class="comment"></highlight></codeline>
<codeline lineno="5"><highlight class="comment"><sp/>Redistribution<sp/>and<sp/>use<sp/>in<sp/>source<sp/>and<sp/>binary<sp/>forms,<sp/>with<sp/>or<sp/>without<sp/>modification,<sp/>are</highlight></codeline>
<codeline lineno="6"><highlight class="comment"><sp/>permitted<sp/>provided<sp/>that<sp/>the<sp/>following<sp/>conditions<sp/>are<sp/>met:</highlight></codeline>
<codeline lineno="7"><highlight class="comment"></highlight></codeline>
<codeline lineno="8"><highlight class="comment"><sp/>Redistributions<sp/>of<sp/>source<sp/>code<sp/>must<sp/>retain<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of</highlight></codeline>
<codeline lineno="9"><highlight class="comment"><sp/>conditions,<sp/>the<sp/>following<sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors.<sp/><sp/>Redistributions<sp/>in<sp/>binary</highlight></codeline>
<codeline lineno="10"><highlight class="comment"><sp/>form<sp/>must<sp/>reproduce<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of<sp/>conditions,<sp/>the<sp/>following</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors<sp/>in<sp/>the<sp/>documentation<sp/>and/or<sp/>other<sp/>materials<sp/>provided</highlight></codeline>
<codeline lineno="12"><highlight class="comment"><sp/>with<sp/>the<sp/>distribution.<sp/>Neither<sp/>the<sp/>name<sp/>of<sp/>the<sp/>UbixOS<sp/>Project<sp/>nor<sp/>the<sp/>names<sp/>of<sp/>its</highlight></codeline>
<codeline lineno="13"><highlight class="comment"><sp/>contributors<sp/>may<sp/>be<sp/>used<sp/>to<sp/>endorse<sp/>or<sp/>promote<sp/>products<sp/>derived<sp/>from<sp/>this<sp/>software</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/>without<sp/>specific<sp/>prior<sp/>written<sp/>permission.</highlight></codeline>
<codeline lineno="15"><highlight class="comment"></highlight></codeline>
<codeline lineno="16"><highlight class="comment"><sp/>THIS<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>BY<sp/>THE<sp/>COPYRIGHT<sp/>HOLDERS<sp/>AND<sp/>CONTRIBUTORS<sp/>&quot;AS<sp/>IS&quot;<sp/>AND<sp/>ANY</highlight></codeline>
<codeline lineno="17"><highlight class="comment"><sp/>EXPRESS<sp/>OR<sp/>IMPLIED<sp/>WARRANTIES,<sp/>INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>THE<sp/>IMPLIED<sp/>WARRANTIES<sp/>OF</highlight></codeline>
<codeline lineno="18"><highlight class="comment"><sp/>MERCHANTABILITY<sp/>AND<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>ARE<sp/>DISCLAIMED.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL</highlight></codeline>
<codeline lineno="19"><highlight class="comment"><sp/>THE<sp/>COPYRIGHT<sp/>OWNER<sp/>OR<sp/>CONTRIBUTORS<sp/>BE<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>DIRECT,<sp/>INDIRECT,<sp/>INCIDENTAL,</highlight></codeline>
<codeline lineno="20"><highlight class="comment"><sp/>SPECIAL,<sp/>EXEMPLARY,<sp/>OR<sp/>CONSEQUENTIAL<sp/>DAMAGES<sp/>(INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>PROCUREMENT</highlight></codeline>
<codeline lineno="21"><highlight class="comment"><sp/>OF<sp/>SUBSTITUTE<sp/>GOODS<sp/>OR<sp/>SERVICES;<sp/>LOSS<sp/>OF<sp/>USE,<sp/>DATA,<sp/>OR<sp/>PROFITS;<sp/>OR<sp/>BUSINESS<sp/>INTERRUPTION)</highlight></codeline>
<codeline lineno="22"><highlight class="comment"><sp/>HOWEVER<sp/>CAUSED<sp/>AND<sp/>ON<sp/>ANY<sp/>THEORY<sp/>OF<sp/>LIABILITY,<sp/>WHETHER<sp/>IN<sp/>CONTRACT,<sp/>STRICT<sp/>LIABILITY,<sp/>OR</highlight></codeline>
<codeline lineno="23"><highlight class="comment"><sp/>TORT<sp/>(INCLUDING<sp/>NEGLIGENCE<sp/>OR<sp/>OTHERWISE)<sp/>ARISING<sp/>IN<sp/>ANY<sp/>WAY<sp/>OUT<sp/>OF<sp/>THE<sp/>USE<sp/>OF<sp/>THIS</highlight></codeline>
<codeline lineno="24"><highlight class="comment"><sp/>SOFTWARE,<sp/>EVEN<sp/>IF<sp/>ADVISED<sp/>OF<sp/>THE<sp/>POSSIBILITY<sp/>OF<sp/>SUCH<sp/>DAMAGE.</highlight></codeline>
<codeline lineno="25"><highlight class="comment"></highlight></codeline>
<codeline lineno="26"><highlight class="comment"><sp/>$Id: ubixfs_8c.xml 88 2016-01-12 00:11:29Z reddawg $</highlight></codeline>
<codeline lineno="27"><highlight class="comment"></highlight></codeline>
<codeline lineno="28"><highlight class="comment">*****************************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="29"><highlight class="normal"></highlight></codeline>
<codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="ubixfs_8h" kindref="compound">ubixfs/ubixfs.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="31"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="dirCache_8h" kindref="compound">ubixfs/dirCache.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="32"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="vfs_8h" kindref="compound">vfs/vfs.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="33"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="types_8h" kindref="compound">ubixos/types.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="34"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="sched_8h" kindref="compound">ubixos/sched.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="35"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="kpanic_8h" kindref="compound">ubixos/kpanic.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="36"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="exec_8h" kindref="compound">ubixos/exec.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="kmalloc_8h" kindref="compound">lib/kmalloc.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="38"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="lib_2string_8h" kindref="compound">lib/string.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="39"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="kprintf_8h" kindref="compound">lib/kprintf.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="40"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="assert_8h" kindref="compound">assert.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="41"><highlight class="normal"></highlight></codeline>
<codeline lineno="42"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Static<sp/>defines<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="43"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubixfs_8c_1ec127f9c4f26d2021e637f5f92ef8e12" kindref="member">ubixfs_loadData</ref>(<ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref><sp/>*fd,</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*data,<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>size,<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>batIndex);</highlight></codeline>
<codeline lineno="44"><highlight class="normal"></highlight></codeline>
<codeline lineno="45"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="46" refid="ubixfs_8c_10ab17f87a44bc7bb7ee3c76262f80e94" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubixfs_8c_10ab17f87a44bc7bb7ee3c76262f80e94" kindref="member">openFileUbixFS</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<ref refid="structfile" kindref="compound">file</ref>,<sp/><ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref><sp/>*fd)<sp/>{</highlight></codeline>
<codeline lineno="47"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//int<sp/>x<sp/>=<sp/>0;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="48"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>mji<sp/><sp/>struct<sp/>directoryEntry<sp/>*dirEntry<sp/>=<sp/>(struct<sp/>directoryEntry<sp/>*)kmalloc(0x4000);<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="49"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*<sp/><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="50"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//struct<sp/>directoryEntry<sp/>*<sp/>dirEntry<sp/>=<sp/>NULL;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="51"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubixFSInfo" kindref="compound">ubixFSInfo</ref><sp/>*fsInfo<sp/>=<sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" kindref="member">fsInfo</ref>;</highlight></codeline>
<codeline lineno="52"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="53"><highlight class="normal"></highlight></codeline>
<codeline lineno="54"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="55"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>kprintf(&quot;openFileUbixFS(%s),<sp/>cwd:<sp/>%s\n&quot;,<sp/>file,<sp/>_current-&gt;oInfo.cwd);<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="56"><highlight class="normal"></highlight></codeline>
<codeline lineno="57"><highlight class="normal"></highlight><highlight class="comment">//if<sp/>(fsInfo-&gt;dirCache<sp/>==<sp/>NULL)<sp/>kprintf(&quot;dirCache<sp/>is<sp/>null!\n&quot;);</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="58"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd);</highlight></codeline>
<codeline lineno="59"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>);</highlight></codeline>
<codeline lineno="60"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>);</highlight></codeline>
<codeline lineno="61"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>);</highlight></codeline>
<codeline lineno="62"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb" kindref="member">read</ref>);</highlight></codeline>
<codeline lineno="63"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fsInfo);</highlight></codeline>
<codeline lineno="64"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>);</highlight></codeline>
<codeline lineno="65"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(file);</highlight></codeline>
<codeline lineno="66"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="67"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((fd-&gt;<ref refid="structfileDescriptorStruct_18c43ddd6ff5fd5383bcdde5896846e98" kindref="member">mode</ref><sp/>&amp;<sp/><ref refid="vfs_8h_1e8e814536103f514b8460ec7a0fc4553" kindref="member">fileRead</ref>)<sp/>==<sp/><ref refid="vfs_8h_1e8e814536103f514b8460ec7a0fc4553" kindref="member">fileRead</ref>)<sp/>{</highlight></codeline>
<codeline lineno="68"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">do</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="69"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>cacheNode<sp/>=<sp/><ref refid="dirCache_8h_1d136be51f0e49671914a4f0db3bb2314" kindref="member">ubixfs_cacheFind</ref>(fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>,(</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)<sp/>file);</highlight></codeline>
<codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(cacheNode<sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(cacheNode-&gt;<ref refid="structcacheNode_18b26b1b3dbe3f8cb72627e09e6c8e353" kindref="member">present</ref><sp/>==<sp/>1)<sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="72"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(cacheNode-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref>);</highlight></codeline>
<codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(*cacheNode-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref><sp/>!=<sp/>0<sp/>&amp;&amp;<sp/>cacheNode-&gt;<ref refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" kindref="member">info</ref><sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/>{</highlight></codeline>
<codeline lineno="74"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//kprintf(&quot;caching<sp/>name(size):<sp/>%s(%d)\n&quot;,cacheNode-&gt;name,*cacheNode-&gt;size);</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cacheNode-&gt;<ref refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" kindref="member">info</ref><sp/>=<sp/><ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(<ref refid="ubixfs_8h_1bd7a711afb8ae672c3e08a9308d06c5b" kindref="member">UBIXFS_ALIGN</ref>(*cacheNode-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref>));</highlight></codeline>
<codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_197eb3dcefe53610658dc341ca449e290" kindref="member">size</ref><sp/>=<sp/>*cacheNode-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref>;<sp/></highlight></codeline>
<codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(cacheNode-&gt;<ref refid="structcacheNode_1a3fa99dfac99663d5448d74594120521" kindref="member">startCluster</ref>);</highlight></codeline>
<codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="ubixfs_8c_1ec127f9c4f26d2021e637f5f92ef8e12" kindref="member">ubixfs_loadData</ref>(fd,</highlight></codeline>
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cacheNode-&gt;<ref refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" kindref="member">info</ref>,</highlight></codeline>
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*cacheNode-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref>,</highlight></codeline>
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*cacheNode-&gt;<ref refid="structcacheNode_1a3fa99dfac99663d5448d74594120521" kindref="member">startCluster</ref>);</highlight></codeline>
<codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cacheNode-&gt;<ref refid="structcacheNode_18b26b1b3dbe3f8cb72627e09e6c8e353" kindref="member">present</ref><sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="comment">/*<sp/>if<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal">(1);</highlight></codeline>
<codeline lineno="85"><highlight class="normal"></highlight></codeline>
<codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(cacheNode);</highlight></codeline>
<codeline lineno="87"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(cacheNode<sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;<sp/></highlight><highlight class="comment">/*<sp/>this<sp/>should<sp/>be<sp/>caught<sp/>above<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="88"><highlight class="normal"></highlight></codeline>
<codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_174b5825aa688ae7936fc0492743ae372" kindref="member">start</ref><sp/><sp/><sp/><sp/>=<sp/>*cacheNode-&gt;<ref refid="structcacheNode_1a3fa99dfac99663d5448d74594120521" kindref="member">startCluster</ref>;</highlight></codeline>
<codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_197eb3dcefe53610658dc341ca449e290" kindref="member">size</ref><sp/><sp/><sp/><sp/><sp/>=<sp/>*cacheNode-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref>;</highlight></codeline>
<codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_111626b5d99a5da968f43bc37d2591c5c" kindref="member">perms</ref><sp/><sp/><sp/><sp/>=<sp/>*cacheNode-&gt;<ref refid="structcacheNode_11eccf5ffd0b1a3479e0e630373cff5af" kindref="member">permissions</ref>;</highlight></codeline>
<codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_10222d37f7abbfbf02d84c98a9a532c33" kindref="member">cacheNode</ref><sp/>=<sp/>cacheNode;<sp/></highlight><highlight class="comment">/*<sp/>Directory<sp/>Start<sp/>Sector<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="93"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="94"><highlight class="comment"><sp/><sp/><sp/><sp/>if<sp/>(cacheNode-&gt;size<sp/>!=<sp/>0x0<sp/>&amp;&amp;<sp/>cacheNode-&gt;info<sp/>==<sp/>NULL)<sp/>{</highlight></codeline>
<codeline lineno="95"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/>cacheNode-&gt;info<sp/>=<sp/>kmalloc(UBIXFS_ALIGN(*cacheNode-&gt;size));</highlight></codeline>
<codeline lineno="96"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/>ubixfs_loadData(fd,cacheNode-&gt;info,cacheNode-&gt;size,cacheNode-&gt;startCluster);</highlight></codeline>
<codeline lineno="97"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/>cacheNode-&gt;present<sp/>=<sp/>0x1;</highlight></codeline>
<codeline lineno="98"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="99"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="100"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0<ref refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" kindref="member">x1</ref>);</highlight></codeline>
<codeline lineno="101"><highlight class="normal"><sp/><sp/>}<sp/></highlight></codeline>
<codeline lineno="102"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight></codeline>
<codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((fd-&gt;<ref refid="structfileDescriptorStruct_18c43ddd6ff5fd5383bcdde5896846e98" kindref="member">mode</ref><sp/>&amp;<sp/><ref refid="vfs_8h_14898b5a1a1daebda9d11b4afde062e5c" kindref="member">fileWrite</ref>)<sp/>==<sp/><ref refid="vfs_8h_14898b5a1a1daebda9d11b4afde062e5c" kindref="member">fileWrite</ref>)<sp/>{</highlight></codeline>
<codeline lineno="104"><highlight class="normal"><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;Ouch!<sp/>in<sp/>filewrite!\n&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="105"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>0</highlight></codeline>
<codeline lineno="106"><highlight class="preprocessor"></highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_174b5825aa688ae7936fc0492743ae372" kindref="member">start</ref><sp/><sp/><sp/><sp/>=<sp/>dirEntry-&gt;startCluster;</highlight></codeline>
<codeline lineno="107"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_197eb3dcefe53610658dc341ca449e290" kindref="member">size</ref><sp/><sp/><sp/><sp/><sp/>=<sp/>dirEntry-&gt;size;</highlight></codeline>
<codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_111626b5d99a5da968f43bc37d2591c5c" kindref="member">perms</ref><sp/><sp/><sp/><sp/>=<sp/>dirEntry-&gt;permissions;</highlight></codeline>
<codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>fd-&gt;dirBlock<sp/>=<sp/>0x0;<sp/>/*<sp/>Directory<sp/>Start<sp/>Sector<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="110"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
<codeline lineno="111"><highlight class="preprocessor"></highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0<ref refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" kindref="member">x1</ref>);</highlight></codeline>
<codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="114"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
<codeline lineno="115"><highlight class="normal"></highlight></codeline>
<codeline lineno="116"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="117"><highlight class="normal"></highlight></codeline>
<codeline lineno="118" refid="ubixfs_8c_14c7f9c50f698ab4cdde8655aaf6363aa" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubixfs_8h_14c7f9c50f698ab4cdde8655aaf6363aa" kindref="member">writeFileByte</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>ch,<sp/><ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref><sp/>*fd,<sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>offset)<sp/>{</highlight></codeline>
<codeline lineno="119"><highlight class="normal"></highlight></codeline>
<codeline lineno="120"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>blockCount<sp/>=<sp/>0x0,batIndex<sp/>=<sp/>0x0,batIndexPrev<sp/>=<sp/>0x0;</highlight></codeline>
<codeline lineno="121"><highlight class="normal"><sp/><sp/><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>i<sp/>=<sp/>0x0;</highlight></codeline>
<codeline lineno="122"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref><sp/>*dirEntry<sp/>=<sp/>0x0;</highlight></codeline>
<codeline lineno="123"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubixFSInfo" kindref="compound">ubixFSInfo</ref><sp/>*fsInfo<sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="124"><highlight class="normal"></highlight></codeline>
<codeline lineno="125"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd);</highlight></codeline>
<codeline lineno="126"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>);</highlight></codeline>
<codeline lineno="127"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>);</highlight></codeline>
<codeline lineno="128"><highlight class="normal"></highlight></codeline>
<codeline lineno="129"><highlight class="normal"><sp/><sp/>batIndexPrev<sp/>=<sp/>fd-&gt;<ref refid="structfileDescriptorStruct_174b5825aa688ae7936fc0492743ae372" kindref="member">start</ref>;</highlight></codeline>
<codeline lineno="130"><highlight class="normal"><sp/><sp/>fsInfo<sp/>=<sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" kindref="member">fsInfo</ref>;</highlight></codeline>
<codeline lineno="131"><highlight class="normal"></highlight></codeline>
<codeline lineno="132"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Find<sp/>Out<sp/>How<sp/>Many<sp/>Blocks<sp/>Long<sp/>This<sp/>File<sp/>Is<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="133"><highlight class="normal"><sp/><sp/>blockCount<sp/>=<sp/>(offset/4096);</highlight></codeline>
<codeline lineno="134"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="135"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Find<sp/>The<sp/>Block<sp/>If<sp/>It<sp/>Doesn&apos;t<sp/>Exist<sp/>We<sp/>Will<sp/>Have<sp/>To<sp/>Allocate<sp/>One<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="136"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i=0x0;<sp/>i<sp/>&lt;=<sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].<ref refid="structubixDiskLabel_1_1ubixPartitions_16a02392928bd127ff780dd656dc88203" kindref="member">pBatSize</ref>;</highlight></codeline>
<codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/>batIndex<sp/>=<sp/>fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[batIndexPrev].<ref refid="structblockAllocationTableEntry_1db5281b505d283f4d43d09e327b63c63" kindref="member">nextBlock</ref>;</highlight></codeline>
<codeline lineno="139"><highlight class="normal"><sp/><sp/><sp/><sp/>if<sp/>(batIndex<sp/>==<sp/>0x0)<sp/>{</highlight></codeline>
<codeline lineno="140"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="141"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="142"><highlight class="normal"><sp/><sp/><sp/><sp/>batIndexPrev<sp/>=<sp/>batIndex;</highlight></codeline>
<codeline lineno="143"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="144"><highlight class="normal"></highlight></codeline>
<codeline lineno="145"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((offset%4096<sp/>==<sp/>0)<sp/>&amp;&amp;<sp/>(fd-&gt;<ref refid="structfileDescriptorStruct_1dd78e2b569c4813dc1b171f4203f3e6b" kindref="member">status</ref><sp/>==<sp/><ref refid="vfs_8h_1a461f4419baab36cdd1143cd0fe66e0e" kindref="member">fdRead</ref>))<sp/>{</highlight></codeline>
<codeline lineno="146"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1dd78e2b569c4813dc1b171f4203f3e6b" kindref="member">status</ref><sp/>=<sp/><ref refid="vfs_8h_1249a3d8cdfed3302062ad215b95a4294" kindref="member">fdOpen</ref>;</highlight></codeline>
<codeline lineno="147"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="148"><highlight class="normal"></highlight></codeline>
<codeline lineno="149"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>If<sp/>batIndex<sp/>==<sp/>0x0<sp/>Then<sp/>We<sp/>Must<sp/>Allocate<sp/>A<sp/>New<sp/>Block<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="150"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(batIndex<sp/>==<sp/>0x0)<sp/>{</highlight></codeline>
<codeline lineno="151"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i=1;i<sp/>&lt;<sp/>fsInfo-&gt;batEntries;i++)<sp/>{</highlight></codeline>
<codeline lineno="152"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(fsInfo-&gt;blockAllocationTable[i].attributes<sp/>==<sp/>0x0)<sp/>{</highlight></codeline>
<codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fsInfo-&gt;blockAllocationTable[batIndexPrev].nextBlock<sp/>=<sp/>i;</highlight></codeline>
<codeline lineno="154"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fsInfo-&gt;blockAllocationTable[batIndex].nextBlock<sp/><sp/><sp/><sp/><sp/>=<sp/>-1;</highlight></codeline>
<codeline lineno="155"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>batIndex<sp/><sp/>=<sp/>i;</highlight></codeline>
<codeline lineno="156"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fd-&gt;start<sp/>=<sp/>i;</highlight></codeline>
<codeline lineno="157"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="158"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="159"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="160"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>fd-&gt;mp-&gt;drive-&gt;read(fd-&gt;mp-&gt;drive-&gt;driveInfoStruct,diskLabel-&gt;partitions[0].pOffset+blockAllocationTable[batIndex].realSector,8,fd-&gt;buffer);<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="161"><highlight class="normal"><sp/><sp/><sp/><sp/>fd-&gt;buffer[offset-(blockCount*4096)]<sp/>=<sp/>ch;</highlight></codeline>
<codeline lineno="162"><highlight class="normal"><sp/><sp/><sp/><sp/>fd-&gt;mp-&gt;device-&gt;devInfo-&gt;write(fd-&gt;mp-&gt;device-&gt;devInfo-&gt;info,fd-&gt;buffer,fd-&gt;mp-&gt;diskLabel-&gt;partitions[fd-&gt;mp-&gt;partition].pOffset+fsInfo-&gt;blockAllocationTable[batIndex].realSector,8);</highlight></codeline>
<codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="164"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(fd-&gt;status<sp/>!=<sp/><ref refid="vfs_8h_1a461f4419baab36cdd1143cd0fe66e0e" kindref="member">fdRead</ref>)<sp/>{<sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fd-&gt;mp-&gt;device-&gt;devInfo-&gt;read(fd-&gt;mp-&gt;device-&gt;devInfo-&gt;info,fd-&gt;buffer,fd-&gt;mp-&gt;diskLabel-&gt;partitions[fd-&gt;mp-&gt;partition].pOffset+fsInfo-&gt;blockAllocationTable[batIndex].realSector,8);</highlight></codeline>
<codeline lineno="167"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fd-&gt;status<sp/>=<sp/><ref refid="vfs_8h_1a461f4419baab36cdd1143cd0fe66e0e" kindref="member">fdRead</ref>;</highlight></codeline>
<codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/>fd-&gt;buffer[offset-(blockCount*4096)]<sp/>=<sp/>ch;</highlight></codeline>
<codeline lineno="170"><highlight class="normal"><sp/><sp/><sp/><sp/>fd-&gt;mp-&gt;device-&gt;devInfo-&gt;write(fd-&gt;mp-&gt;device-&gt;devInfo-&gt;info,fd-&gt;buffer,fd-&gt;mp-&gt;diskLabel-&gt;partitions[fd-&gt;mp-&gt;partition].pOffset+fsInfo-&gt;blockAllocationTable[batIndex].realSector,8);</highlight></codeline>
<codeline lineno="171"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="172"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref>)offset<sp/>&gt;<sp/>fd-&gt;size)<sp/>{</highlight></codeline>
<codeline lineno="173"><highlight class="normal"><sp/><sp/><sp/><sp/>fd-&gt;size<sp/>=<sp/>offset;</highlight></codeline>
<codeline lineno="174"><highlight class="normal"><sp/><sp/><sp/><sp/>dirEntry<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref><sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(4096);</highlight></codeline>
<codeline lineno="175"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="176"><highlight class="comment"><sp/><sp/><sp/><sp/>fd-&gt;mp-&gt;device-&gt;devInfo-&gt;read(fd-&gt;mp-&gt;device-&gt;devInfo-&gt;info,dirEntry,(fd-&gt;mp-&gt;diskLabel-&gt;partitions[fd-&gt;mp-&gt;partition].pOffset+fsInfo-&gt;blockAllocationTable[fd-&gt;dirBlock].realSector),8);</highlight></codeline>
<codeline lineno="177"><highlight class="comment"><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="178"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i=0x0;i&lt;(4096/</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref>));i++)<sp/>{</highlight></codeline>
<codeline lineno="179"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((</highlight><highlight class="keywordtype">int</highlight><highlight class="normal">)!<ref refid="lib_2string_8h_16f3dcb20ff11ff9db5904c3cfb61a38c" kindref="member">strcmp</ref>(dirEntry[i].<ref refid="structdirectoryEntry_161e77c256eaf6c4e7fe56d2574f16f98" kindref="member">fileName</ref>,fd-&gt;fileName))</highlight></codeline>
<codeline lineno="180"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="181"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/><sp/></highlight></codeline>
<codeline lineno="182"><highlight class="normal"><sp/><sp/><sp/><sp/>dirEntry[i].size<sp/>=<sp/>fd-&gt;size;</highlight></codeline>
<codeline lineno="183"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="184"><highlight class="comment"><sp/><sp/><sp/><sp/>fd-&gt;mp-&gt;device-&gt;devInfo-&gt;write(fd-&gt;mp-&gt;device-&gt;devInfo-&gt;info,dirEntry,(fd-&gt;mp-&gt;diskLabel-&gt;partitions[fd-&gt;mp-&gt;partition].pOffset+fsInfo-&gt;blockAllocationTable[fd-&gt;dirBlock].realSector),8);</highlight></codeline>
<codeline lineno="185"><highlight class="comment">*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="186"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kmalloc_8h_1aa9ed6886459604cf73ccdbf6410e487" kindref="member">kfree</ref>(dirEntry);</highlight></codeline>
<codeline lineno="187"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="188"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(ch);</highlight></codeline>
<codeline lineno="189"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="190"><highlight class="normal"></highlight></codeline>
<codeline lineno="191"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Verified<sp/>Functions<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="192"><highlight class="normal"></highlight></codeline>
<codeline lineno="193"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="194" refid="ubixfs_8c_151f5dd233a9470dd0254bb0d0e435b8d" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubixfs_8h_13882cc85dc373eba13315dfb0da4c578" kindref="member">readUbixFS</ref>(<ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref><sp/>*fd,</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*data,<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>offset,</highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/><ref refid="structdirectoryEntry_19571030f709f6926b925e552660a65ab" kindref="member">size</ref>)<sp/>{</highlight></codeline>
<codeline lineno="195"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>0x0;</highlight></codeline>
<codeline lineno="196"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*buffer<sp/>=<sp/>0x0;</highlight></codeline>
<codeline lineno="197"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubixFSInfo" kindref="compound">ubixFSInfo</ref><sp/>*fsInfo<sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="198"><highlight class="normal"></highlight></codeline>
<codeline lineno="199"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd);</highlight></codeline>
<codeline lineno="200"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>);</highlight></codeline>
<codeline lineno="201"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" kindref="member">fsInfo</ref>);</highlight></codeline>
<codeline lineno="202"><highlight class="normal"></highlight></codeline>
<codeline lineno="203"><highlight class="normal"><sp/><sp/>fsInfo<sp/>=<sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" kindref="member">fsInfo</ref>;</highlight></codeline>
<codeline lineno="204"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="205"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(fd-&gt;<ref refid="structfileDescriptorStruct_10222d37f7abbfbf02d84c98a9a532c33" kindref="member">cacheNode</ref>-&gt;<ref refid="structcacheNode_18b26b1b3dbe3f8cb72627e09e6c8e353" kindref="member">present</ref><sp/>!=<sp/>1)<sp/></highlight></codeline>
<codeline lineno="206"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kpanic_8h_1db9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">&quot;ERROR<sp/>with<sp/>cache<sp/>node\n&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="207"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="208"><highlight class="normal"><sp/><sp/>buffer<sp/>=<sp/>(</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)fd-&gt;<ref refid="structfileDescriptorStruct_10222d37f7abbfbf02d84c98a9a532c33" kindref="member">cacheNode</ref>-&gt;<ref refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" kindref="member">info</ref>;</highlight></codeline>
<codeline lineno="209"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="210"><highlight class="normal"><sp/><sp/>for<sp/>(i=0x0;<sp/>i&lt;size;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="211"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(offset<sp/>&gt;<sp/>fd-&gt;<ref refid="structfileDescriptorStruct_197eb3dcefe53610658dc341ca449e290" kindref="member">size</ref>)<sp/>{</highlight></codeline>
<codeline lineno="212"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Set<sp/>File<sp/>EOF<sp/>If<sp/>There<sp/>Is<sp/>Nothing<sp/>To<sp/>Do<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="213"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>data[i]<sp/>=<sp/>&apos;\0&apos;;<sp/>Is<sp/>this<sp/>safe?<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="214"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1dd78e2b569c4813dc1b171f4203f3e6b" kindref="member">status</ref><sp/>=<sp/><ref refid="vfs_8h_14907ecb6121af1b80c5c5b436ebe3cb5" kindref="member">fdEof</ref>;</highlight></codeline>
<codeline lineno="215"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(size);</highlight></codeline>
<codeline lineno="216"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="217"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Copy<sp/>Data<sp/>From<sp/>Buffer<sp/>To<sp/>Data<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="218"><highlight class="normal"><sp/><sp/><sp/><sp/>data[i]<sp/>=<sp/>buffer[i<sp/>+<sp/>offset];</highlight></codeline>
<codeline lineno="219"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="220"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Return<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="221"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(size);</highlight></codeline>
<codeline lineno="222"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="223"><highlight class="normal"></highlight></codeline>
<codeline lineno="224"><highlight class="normal"></highlight></codeline>
<codeline lineno="225"><highlight class="normal"></highlight><highlight class="comment">/************************************************************************</highlight></codeline>
<codeline lineno="226"><highlight class="comment"></highlight></codeline>
<codeline lineno="227"><highlight class="comment">Function:<sp/>int<sp/>writeUbixFS(fileDescriptor<sp/>*fd,char<sp/>*data,long<sp/>offset,long<sp/>size)</highlight></codeline>
<codeline lineno="228"><highlight class="comment">Description:<sp/>Write<sp/>Data<sp/>Into<sp/>File</highlight></codeline>
<codeline lineno="229"><highlight class="comment">Notes:</highlight></codeline>
<codeline lineno="230"><highlight class="comment"></highlight></codeline>
<codeline lineno="231"><highlight class="comment">************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="232" refid="ubixfs_8c_1ba0435c266346dd10ac3cbc68655b20c" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubixfs_8h_1ba0435c266346dd10ac3cbc68655b20c" kindref="member">writeUbixFS</ref>(<ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref><sp/>*fd,</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*data,</highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>offset,</highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>size)<sp/>{</highlight></codeline>
<codeline lineno="233"><highlight class="normal"><sp/><sp/><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>blockOffset<sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline>
<codeline lineno="234"><highlight class="normal"><sp/><sp/><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>blockIndex;</highlight></codeline>
<codeline lineno="235"><highlight class="normal"><sp/><sp/><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>blockIndexPrev;</highlight></codeline>
<codeline lineno="236"><highlight class="normal"><sp/><sp/><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>i<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline>
<codeline lineno="237"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubixFSInfo" kindref="compound">ubixFSInfo</ref><sp/>*fsInfo<sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="238"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref><sp/>*dirEntry<sp/>=<sp/>0x0;</highlight></codeline>
<codeline lineno="239"><highlight class="normal"></highlight></codeline>
<codeline lineno="240"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd);</highlight></codeline>
<codeline lineno="241"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>);</highlight></codeline>
<codeline lineno="242"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" kindref="member">fsInfo</ref>);</highlight></codeline>
<codeline lineno="243"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>);</highlight></codeline>
<codeline lineno="244"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>);</highlight></codeline>
<codeline lineno="245"><highlight class="normal"></highlight></codeline>
<codeline lineno="246"><highlight class="normal"><sp/><sp/>blockIndex<sp/>=<sp/>blockIndexPrev<sp/>=<sp/>fd-&gt;<ref refid="structfileDescriptorStruct_174b5825aa688ae7936fc0492743ae372" kindref="member">start</ref>;</highlight></codeline>
<codeline lineno="247"><highlight class="normal"><sp/><sp/>fsInfo<sp/>=<sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" kindref="member">fsInfo</ref>;</highlight></codeline>
<codeline lineno="248"><highlight class="normal"></highlight></codeline>
<codeline lineno="249"><highlight class="normal"><sp/><sp/>blockOffset<sp/>=<sp/>(offset/0x1000);</highlight></codeline>
<codeline lineno="250"><highlight class="normal"></highlight></codeline>
<codeline lineno="251"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(fd-&gt;<ref refid="structfileDescriptorStruct_197eb3dcefe53610658dc341ca449e290" kindref="member">size</ref><sp/>!=<sp/>0x0)<sp/>{</highlight></codeline>
<codeline lineno="252"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0x0;i<sp/>&lt;<sp/>blockOffset;i++)<sp/>{</highlight></codeline>
<codeline lineno="253"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>blockIndex<sp/>=<sp/>fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[blockIndexPrev].<ref refid="structblockAllocationTableEntry_1db5281b505d283f4d43d09e327b63c63" kindref="member">nextBlock</ref>;</highlight></codeline>
<codeline lineno="254"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>if<sp/>((</highlight><highlight class="keywordtype">int</highlight><highlight class="normal">)blockIndex<sp/>==<sp/><ref refid="ubixfs_8h_19c66702437ce6449d7886b4dbaad3c02" kindref="member">EOBC</ref>)<sp/>{</highlight></codeline>
<codeline lineno="255"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>blockIndex<sp/>=<sp/><ref refid="ubixfs_8h_1d2880707d0f942f5119f946db4e13e4e" kindref="member">getFreeBlocks</ref>(1,fd);</highlight></codeline>
<codeline lineno="256"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[blockIndexPrev].<ref refid="structblockAllocationTableEntry_1db5281b505d283f4d43d09e327b63c63" kindref="member">nextBlock</ref><sp/>=<sp/>blockIndex;</highlight></codeline>
<codeline lineno="257"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[blockIndex].<ref refid="structblockAllocationTableEntry_1db5281b505d283f4d43d09e327b63c63" kindref="member">nextBlock</ref><sp/>=<sp/><ref refid="ubixfs_8h_19c66702437ce6449d7886b4dbaad3c02" kindref="member">EOBC</ref>;</highlight></codeline>
<codeline lineno="258"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="259"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="260"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>blockIndexPrev<sp/>=<sp/>blockIndex;</highlight></codeline>
<codeline lineno="261"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="262"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="263"><highlight class="normal"></highlight></codeline>
<codeline lineno="264"><highlight class="normal"><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb" kindref="member">read</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,fd-&gt;<ref refid="structfileDescriptorStruct_1cbc0897e87c2c167cdb8cb1beb77f598" kindref="member">buffer</ref>,fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].pOffset+fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[blockIndex].<ref refid="structblockAllocationTableEntry_147b0210bbfb05977d7d5fed3b24718b4" kindref="member">realSector</ref>,<ref refid="ubixfs_8h_1d4eebb29e7c75230c032b1e6f71e061d" kindref="member">blockSize</ref>);</highlight></codeline>
<codeline lineno="265"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0x0;i<sp/>&lt;<sp/>(<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref>)size;i++)<sp/>{</highlight></codeline>
<codeline lineno="266"><highlight class="normal"></highlight></codeline>
<codeline lineno="267"><highlight class="normal"><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1cbc0897e87c2c167cdb8cb1beb77f598" kindref="member">buffer</ref>[(offset-<sp/>(blockOffset<sp/>*0<ref refid="ap-boot_8S_1f78b91f02427adef14bb8b28aa93baa5" kindref="member">x1000</ref>))]<sp/>=<sp/>data[i];</highlight></codeline>
<codeline lineno="268"><highlight class="normal"><sp/><sp/><sp/><sp/>offset++;</highlight></codeline>
<codeline lineno="269"><highlight class="normal"></highlight></codeline>
<codeline lineno="270"><highlight class="normal"><sp/><sp/><sp/><sp/>if<sp/>(offset%4096<sp/>==<sp/>0x0)<sp/>{</highlight></codeline>
<codeline lineno="271"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>blockOffset++;</highlight></codeline>
<codeline lineno="272"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_1f46913eec9f191290c82db23380bc5df" kindref="member">write</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,fd-&gt;<ref refid="structfileDescriptorStruct_1cbc0897e87c2c167cdb8cb1beb77f598" kindref="member">buffer</ref>,fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].pOffset+fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[blockIndex].<ref refid="structblockAllocationTableEntry_147b0210bbfb05977d7d5fed3b24718b4" kindref="member">realSector</ref>,<ref refid="ubixfs_8h_1d4eebb29e7c75230c032b1e6f71e061d" kindref="member">blockSize</ref>);</highlight></codeline>
<codeline lineno="273"><highlight class="normal"><sp/></highlight></codeline>
<codeline lineno="274"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[blockIndex].<ref refid="structblockAllocationTableEntry_1db5281b505d283f4d43d09e327b63c63" kindref="member">nextBlock</ref><sp/>==<sp/><ref refid="ubixfs_8h_19c66702437ce6449d7886b4dbaad3c02" kindref="member">EOBC</ref>)<sp/>{</highlight></codeline>
<codeline lineno="275"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>blockIndexPrev<sp/>=<sp/>blockIndex;</highlight></codeline>
<codeline lineno="276"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>blockIndex<sp/>=<sp/><ref refid="ubixfs_8h_1d2880707d0f942f5119f946db4e13e4e" kindref="member">getFreeBlocks</ref>(1,fd);</highlight></codeline>
<codeline lineno="277"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[blockIndexPrev].<ref refid="structblockAllocationTableEntry_1db5281b505d283f4d43d09e327b63c63" kindref="member">nextBlock</ref><sp/>=<sp/>blockIndex;</highlight></codeline>
<codeline lineno="278"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[blockIndex].<ref refid="structblockAllocationTableEntry_1db5281b505d283f4d43d09e327b63c63" kindref="member">nextBlock</ref><sp/><sp/><sp/><sp/><sp/>=<sp/><ref refid="ubixfs_8h_19c66702437ce6449d7886b4dbaad3c02" kindref="member">EOBC</ref>;</highlight></codeline>
<codeline lineno="279"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="280"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="281"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>blockIndex<sp/>=<sp/>fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[blockIndex].<ref refid="structblockAllocationTableEntry_1db5281b505d283f4d43d09e327b63c63" kindref="member">nextBlock</ref>;</highlight></codeline>
<codeline lineno="282"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb" kindref="member">read</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,fd-&gt;<ref refid="structfileDescriptorStruct_1cbc0897e87c2c167cdb8cb1beb77f598" kindref="member">buffer</ref>,fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].pOffset+fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[blockIndex].<ref refid="structblockAllocationTableEntry_147b0210bbfb05977d7d5fed3b24718b4" kindref="member">realSector</ref>,<ref refid="ubixfs_8h_1d4eebb29e7c75230c032b1e6f71e061d" kindref="member">blockSize</ref>);</highlight></codeline>
<codeline lineno="283"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="284"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="285"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="286"><highlight class="normal"><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_1f46913eec9f191290c82db23380bc5df" kindref="member">write</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,fd-&gt;<ref refid="structfileDescriptorStruct_1cbc0897e87c2c167cdb8cb1beb77f598" kindref="member">buffer</ref>,fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].pOffset+fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[blockIndex].<ref refid="structblockAllocationTableEntry_147b0210bbfb05977d7d5fed3b24718b4" kindref="member">realSector</ref>,<ref refid="ubixfs_8h_1d4eebb29e7c75230c032b1e6f71e061d" kindref="member">blockSize</ref>);</highlight></codeline>
<codeline lineno="287"><highlight class="normal"></highlight></codeline>
<codeline lineno="288"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref>)offset<sp/>&gt;<sp/>fd-&gt;<ref refid="structfileDescriptorStruct_197eb3dcefe53610658dc341ca449e290" kindref="member">size</ref>)<sp/>{</highlight></codeline>
<codeline lineno="289"><highlight class="normal"><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_197eb3dcefe53610658dc341ca449e290" kindref="member">size</ref><sp/>=<sp/>offset;</highlight></codeline>
<codeline lineno="290"><highlight class="normal"><sp/><sp/><sp/><sp/>dirEntry<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref><sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(4096);</highlight></codeline>
<codeline lineno="291"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="292"><highlight class="comment"><sp/><sp/><sp/><sp/>fd-&gt;mp-&gt;device-&gt;devInfo-&gt;read(fd-&gt;mp-&gt;device-&gt;devInfo-&gt;info,dirEntry,(fd-&gt;mp-&gt;diskLabel-&gt;partitions[fd-&gt;mp-&gt;partition].pOffset+fsInfo-&gt;blockAllocationTable[fd-&gt;dirBlock].realSector),blockSize);</highlight></codeline>
<codeline lineno="293"><highlight class="comment">*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="294"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i=0x0;i&lt;(4096/</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref>));i++)<sp/>{</highlight></codeline>
<codeline lineno="295"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((</highlight><highlight class="keywordtype">int</highlight><highlight class="normal">)!<ref refid="lib_2string_8h_16f3dcb20ff11ff9db5904c3cfb61a38c" kindref="member">strcmp</ref>(dirEntry[i].<ref refid="structdirectoryEntry_161e77c256eaf6c4e7fe56d2574f16f98" kindref="member">fileName</ref>,fd-&gt;<ref refid="structfileDescriptorStruct_14ca84ca208f0bcd97d654f99a55724f6" kindref="member">fileName</ref>))</highlight></codeline>
<codeline lineno="296"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="297"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="298"><highlight class="normal"><sp/><sp/><sp/><sp/>dirEntry[i].<ref refid="structdirectoryEntry_19571030f709f6926b925e552660a65ab" kindref="member">size</ref><sp/>=<sp/>fd-&gt;<ref refid="structfileDescriptorStruct_197eb3dcefe53610658dc341ca449e290" kindref="member">size</ref>;</highlight></codeline>
<codeline lineno="299"><highlight class="normal"><sp/><sp/><sp/><sp/>dirEntry[i].<ref refid="structdirectoryEntry_183e91977e7db1dc36d3e81183ac8965c" kindref="member">startCluster</ref><sp/>=<sp/>fd-&gt;<ref refid="structfileDescriptorStruct_174b5825aa688ae7936fc0492743ae372" kindref="member">start</ref>;</highlight></codeline>
<codeline lineno="300"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="301"><highlight class="comment"><sp/><sp/><sp/><sp/>fd-&gt;mp-&gt;device-&gt;devInfo-&gt;write(fd-&gt;mp-&gt;device-&gt;devInfo-&gt;info,dirEntry,(fd-&gt;mp-&gt;diskLabel-&gt;partitions[fd-&gt;mp-&gt;partition].pOffset+fsInfo-&gt;blockAllocationTable[fd-&gt;dirBlock].realSector),blockSize);</highlight></codeline>
<codeline lineno="302"><highlight class="comment">*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="303"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kmalloc_8h_1aa9ed6886459604cf73ccdbf6410e487" kindref="member">kfree</ref>(dirEntry);</highlight></codeline>
<codeline lineno="304"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="305"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Return<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="306"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(size);</highlight></codeline>
<codeline lineno="307"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="308"><highlight class="normal"></highlight></codeline>
<codeline lineno="309" refid="ubixfs_8c_1dfbafb62e063e24f4df09029862ba9d0" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="ubixfs_8h_1dfbafb62e063e24f4df09029862ba9d0" kindref="member">ubixFSUnlink</ref>(</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*path,</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structvfs__mountPoint" kindref="compound">vfs_mountPoint</ref><sp/>*mp)<sp/>{</highlight></codeline>
<codeline lineno="310"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>x=0;</highlight></codeline>
<codeline lineno="311"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref><sp/>*dirEntry<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref><sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(0<ref refid="ap-boot_8S_1f78b91f02427adef14bb8b28aa93baa5" kindref="member">x1000</ref>);</highlight></codeline>
<codeline lineno="312"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubixFSInfo" kindref="compound">ubixFSInfo</ref><sp/>*fsInfo<sp/>=<sp/>mp-&gt;<ref refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" kindref="member">fsInfo</ref>;</highlight></codeline>
<codeline lineno="313"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="314"><highlight class="normal"><sp/><sp/>mp-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb" kindref="member">read</ref>(mp-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,dirEntry,(mp-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[mp-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].pOffset+fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[fsInfo-&gt;<ref refid="structubixFSInfo_18c58076e25df4115ed42bebce08d5181" kindref="member">rootDir</ref>].realSector),8);</highlight></codeline>
<codeline lineno="315"><highlight class="normal"></highlight></codeline>
<codeline lineno="316"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(x=0;(<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref>)x&lt;(4096/</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref>));x++)<sp/>{</highlight></codeline>
<codeline lineno="317"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((</highlight><highlight class="keywordtype">int</highlight><highlight class="normal">)!<ref refid="lib_2string_8h_16f3dcb20ff11ff9db5904c3cfb61a38c" kindref="member">strcmp</ref>(dirEntry[x].fileName,path))<sp/>{</highlight></codeline>
<codeline lineno="318"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>dirEntry[x].attributes<sp/>|=<sp/><ref refid="ubixfs_8h_1b0df352296e0f22896675aba0aa11b6e" kindref="member">typeDeleted</ref>;</highlight></codeline>
<codeline lineno="319"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>dirEntry[x].<ref refid="structdirectoryEntry_161e77c256eaf6c4e7fe56d2574f16f98" kindref="member">fileName</ref>[0]<sp/>=<sp/></highlight><highlight class="charliteral">&apos;?&apos;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="320"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>mp-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_1f46913eec9f191290c82db23380bc5df" kindref="member">write</ref>(mp-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,dirEntry,(mp-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[mp-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].pOffset+fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[fsInfo-&gt;<ref refid="structubixFSInfo_18c58076e25df4115ed42bebce08d5181" kindref="member">rootDir</ref>].realSector),8);</highlight></codeline>
<codeline lineno="321"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="322"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="323"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="324"><highlight class="normal"><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;File<sp/>Not<sp/>Found\n&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="325"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="326"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="327"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="328"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="329"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************************</highlight></codeline>
<codeline lineno="330"><highlight class="comment"></highlight></codeline>
<codeline lineno="331"><highlight class="comment">Function:<sp/>static</highlight></codeline>
<codeline lineno="332"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>int<sp/>ubixfs_loadData(fileDescriptor<sp/>*fd,char<sp/>*data,uInt32<sp/>size,uInt32<sp/>batIndex)</highlight></codeline>
<codeline lineno="333"><highlight class="comment"></highlight></codeline>
<codeline lineno="334"><highlight class="comment">Description:<sp/>This<sp/>will<sp/>load<sp/>the<sp/>node<sp/>data<sp/>in<sp/>from<sp/>the<sp/>disk</highlight></codeline>
<codeline lineno="335"><highlight class="comment"></highlight></codeline>
<codeline lineno="336"><highlight class="comment">Notes:</highlight></codeline>
<codeline lineno="337"><highlight class="comment"><sp/><sp/>07/23/2004<sp/>-<sp/>This<sp/>loads<sp/>complete<sp/>blocks<sp/>from<sp/>disk<sp/>so<sp/>it<sp/>is<sp/>aligned<sp/>to<sp/>0x1000<sp/>not<sp/>the</highlight></codeline>
<codeline lineno="338"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>actual<sp/>file<sp/>size</highlight></codeline>
<codeline lineno="339"><highlight class="comment"></highlight></codeline>
<codeline lineno="340"><highlight class="comment">*****************************************************************************************/</highlight><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="341" refid="ubixfs_8c_1ec127f9c4f26d2021e637f5f92ef8e12" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubixfs_8c_1ec127f9c4f26d2021e637f5f92ef8e12" kindref="member">ubixfs_loadData</ref>(<ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref><sp/>*fd,</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*data,<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>size,<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>batIndex)<sp/>{</highlight></codeline>
<codeline lineno="342"><highlight class="normal"><sp/><sp/><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>i<sp/>=<sp/>0x0;</highlight></codeline>
<codeline lineno="343"><highlight class="normal"></highlight></codeline>
<codeline lineno="344"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubixFSInfo" kindref="compound">ubixFSInfo</ref><sp/>*fsInfo<sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="345"><highlight class="normal"></highlight></codeline>
<codeline lineno="346"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd);</highlight></codeline>
<codeline lineno="347"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>);</highlight></codeline>
<codeline lineno="348"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" kindref="member">fsInfo</ref>);</highlight></codeline>
<codeline lineno="349"><highlight class="normal"></highlight></codeline>
<codeline lineno="350"><highlight class="normal"><sp/><sp/>fsInfo<sp/>=<sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" kindref="member">fsInfo</ref>;</highlight></codeline>
<codeline lineno="351"><highlight class="normal"></highlight></codeline>
<codeline lineno="352"><highlight class="normal"><sp/><sp/>size<sp/>=<sp/><ref refid="ubixfs_8h_1bd7a711afb8ae672c3e08a9308d06c5b" kindref="member">UBIXFS_ALIGN</ref>(size);</highlight></codeline>
<codeline lineno="353"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Loop<sp/>by<sp/>block<sp/>size<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="354"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="355"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i=0x0;<sp/>i&lt;size;<sp/>i<sp/>+=<sp/>(<ref refid="ubixfs_8h_1dab92bc23023fba8f349eb34bf5acf46" kindref="member">UBIXFS_BLOCKSIZE_BYTES</ref>))<sp/>{</highlight></codeline>
<codeline lineno="356"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Get<sp/>next<sp/>block<sp/>if<sp/>we<sp/>are<sp/>ready<sp/>for<sp/>it<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="357"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(i<sp/>!=<sp/>0x0)</highlight></codeline>
<codeline lineno="358"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>batIndex<sp/>=<sp/>fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[batIndex].<ref refid="structblockAllocationTableEntry_1db5281b505d283f4d43d09e327b63c63" kindref="member">nextBlock</ref>;</highlight></codeline>
<codeline lineno="359"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Read<sp/>data<sp/>in<sp/>from<sp/>media<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="360"><highlight class="normal"><sp/><sp/><sp/><sp/>fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb" kindref="member">read</ref>(fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,data+i,fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[fd-&gt;<ref refid="structfileDescriptorStruct_1f8abeb5da4a430885db51246db1356f9" kindref="member">mp</ref>-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].pOffset+fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[batIndex].<ref refid="structblockAllocationTableEntry_147b0210bbfb05977d7d5fed3b24718b4" kindref="member">realSector</ref>,<ref refid="ubixfs_8h_1d4eebb29e7c75230c032b1e6f71e061d" kindref="member">blockSize</ref>);</highlight></codeline>
<codeline lineno="361"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="362"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Return<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="363"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline>
<codeline lineno="364"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="365"><highlight class="normal"></highlight></codeline>
<codeline lineno="366"><highlight class="normal"></highlight></codeline>
<codeline lineno="367"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************************</highlight></codeline>
<codeline lineno="368"><highlight class="comment"></highlight></codeline>
<codeline lineno="369"><highlight class="comment">Function:<sp/>int<sp/>ubixfs_initialize()</highlight></codeline>
<codeline lineno="370"><highlight class="comment"></highlight></codeline>
<codeline lineno="371"><highlight class="comment">Description:<sp/>This<sp/>will<sp/>initialize<sp/>a<sp/>mount<sp/>point<sp/>it<sp/>loads<sp/>the<sp/>BAT<sp/>and<sp/>Caches<sp/>the<sp/>rootDir</highlight></codeline>
<codeline lineno="372"><highlight class="comment"></highlight></codeline>
<codeline lineno="373"><highlight class="comment">Notes:</highlight></codeline>
<codeline lineno="374"><highlight class="comment"></highlight></codeline>
<codeline lineno="375"><highlight class="comment">*****************************************************************************************/</highlight><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="376" refid="ubixfs_8c_132762e2563015d124909f3317c2a7423" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubixfs_8h_12c53ad6e6ce2e149eec9b5361dd10eda" kindref="member">ubixfs_initialize</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structvfs__mountPoint" kindref="compound">vfs_mountPoint</ref><sp/>*mp)<sp/>{</highlight></codeline>
<codeline lineno="377"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubixFSInfo" kindref="compound">ubixFSInfo</ref><sp/>*fsInfo<sp/>=<sp/>0x0;</highlight></codeline>
<codeline lineno="378"><highlight class="normal"></highlight></codeline>
<codeline lineno="379"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(mp);</highlight></codeline>
<codeline lineno="380"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(mp-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>);</highlight></codeline>
<codeline lineno="381"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(mp-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>);</highlight></codeline>
<codeline lineno="382"><highlight class="normal"></highlight></codeline>
<codeline lineno="383"><highlight class="normal"><sp/><sp/>mp-&gt;<ref refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" kindref="member">fsInfo</ref><sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structubixFSInfo" kindref="compound">ubixFSInfo</ref><sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structubixFSInfo" kindref="compound">ubixFSInfo</ref>));</highlight></codeline>
<codeline lineno="384"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(mp-&gt;<ref refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" kindref="member">fsInfo</ref>);</highlight></codeline>
<codeline lineno="385"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="386"><highlight class="normal"><sp/><sp/>fsInfo<sp/>=<sp/>mp-&gt;<ref refid="structvfs__mountPoint_19771ecae1bc4482ad0282aee5766bd9b" kindref="member">fsInfo</ref>;</highlight></codeline>
<codeline lineno="387"><highlight class="normal"><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_18c58076e25df4115ed42bebce08d5181" kindref="member">rootDir</ref><sp/>=<sp/>0x0;<sp/></highlight><highlight class="comment">/*<sp/>Root<sp/>directory<sp/>is<sp/>always<sp/>0x0<sp/>on<sp/>the<sp/>UbixFS<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="388"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="389"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="390"><highlight class="comment"><sp/><sp/><sp/>Check<sp/>the<sp/>disk<sp/>label<sp/>to<sp/>ensure<sp/>this<sp/>is<sp/>an<sp/>UbixFS<sp/>partition</highlight></codeline>
<codeline lineno="391"><highlight class="comment"><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="392"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((mp-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_12eea14a0546c7de19d53b3784e623463" kindref="member">magicNum</ref><sp/>==<sp/><ref refid="ubixfs_8h_11b1ab97d6d5dfbfb20f0f80d7c625941" kindref="member">UBIXDISKMAGIC</ref>)<sp/>&amp;&amp;<sp/><sp/>(mp-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_195fd8a0ea36a8b3de597b92c8ebe0dce" kindref="member">magicNum2</ref><sp/>==<sp/><ref refid="ubixfs_8h_11b1ab97d6d5dfbfb20f0f80d7c625941" kindref="member">UBIXDISKMAGIC</ref>))<sp/>{</highlight></codeline>
<codeline lineno="393"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="394"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Allocate<sp/>memory<sp/>for<sp/>BAT<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="395"><highlight class="normal"><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref><sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structblockAllocationTableEntry" kindref="compound">blockAllocationTableEntry</ref><sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(mp-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[mp-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].pBatSize<sp/>*<sp/>512);</highlight></codeline>
<codeline lineno="396"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>);</highlight></codeline>
<codeline lineno="397"><highlight class="normal"></highlight></codeline>
<codeline lineno="398"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Set<sp/>up<sp/>the<sp/>amount<sp/>of<sp/>BAT<sp/>entries<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="399"><highlight class="normal"><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_14f530e266f49e0310c763653399dafa2" kindref="member">batEntries</ref><sp/>=<sp/>(mp-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[mp-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].<ref refid="structubixDiskLabel_1_1ubixPartitions_16a02392928bd127ff780dd656dc88203" kindref="member">pBatSize</ref>*512)<sp/>/<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structblockAllocationTableEntry" kindref="compound">blockAllocationTableEntry</ref>);</highlight></codeline>
<codeline lineno="400"><highlight class="normal"></highlight></codeline>
<codeline lineno="401"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Read<sp/>the<sp/>BAT<sp/>to<sp/>memory<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="402"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(mp-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb" kindref="member">read</ref>);</highlight></codeline>
<codeline lineno="403"><highlight class="normal"><sp/><sp/><sp/><sp/>mp-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb" kindref="member">read</ref>(mp-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,<sp/></highlight></codeline>
<codeline lineno="404"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>,</highlight></codeline>
<codeline lineno="405"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>mp-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[mp-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].pOffset,</highlight></codeline>
<codeline lineno="406"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>mp-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[mp-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].pBatSize);</highlight></codeline>
<codeline lineno="407"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="408"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Set<sp/>up<sp/>root<sp/>directory<sp/>cache<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="409"><highlight class="normal"><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref><sp/>=<sp/><ref refid="dirCache_8h_1adfffea5ad577cecdfbc4eb7989cf193" kindref="member">ubixfs_cacheNew</ref>(</highlight><highlight class="stringliteral">&quot;/&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="410"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>);</highlight></codeline>
<codeline lineno="411"><highlight class="normal"><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" kindref="member">info</ref><sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref><sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(0x4000);<sp/><sp/></highlight><highlight class="comment">/*<sp/>allocate<sp/>root<sp/>dir<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="412"><highlight class="normal"><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_18b26b1b3dbe3f8cb72627e09e6c8e353" kindref="member">present</ref><sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="413"><highlight class="normal"><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref><sp/>=<sp/><ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref>));</highlight></codeline>
<codeline lineno="414"><highlight class="normal"><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_1a3fa99dfac99663d5448d74594120521" kindref="member">startCluster</ref><sp/>=<sp/><ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_1a3fa99dfac99663d5448d74594120521" kindref="member">startCluster</ref>));</highlight></codeline>
<codeline lineno="415"><highlight class="normal"><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_176defc9430363558ce5a96f72fa7b1d4" kindref="member">attributes</ref><sp/>=<sp/><ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_176defc9430363558ce5a96f72fa7b1d4" kindref="member">attributes</ref>));</highlight></codeline>
<codeline lineno="416"><highlight class="normal"><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_11eccf5ffd0b1a3479e0e630373cff5af" kindref="member">permissions</ref><sp/>=<sp/><ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_11eccf5ffd0b1a3479e0e630373cff5af" kindref="member">permissions</ref>));</highlight></codeline>
<codeline lineno="417"><highlight class="normal"></highlight></codeline>
<codeline lineno="418"><highlight class="normal"><sp/><sp/><sp/><sp/>*fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref><sp/>=<sp/>0x4000;</highlight></codeline>
<codeline lineno="419"><highlight class="normal"><sp/><sp/><sp/><sp/>*fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_1a3fa99dfac99663d5448d74594120521" kindref="member">startCluster</ref><sp/>=<sp/>fsInfo-&gt;<ref refid="structubixFSInfo_18c58076e25df4115ed42bebce08d5181" kindref="member">rootDir</ref>;</highlight></codeline>
<codeline lineno="420"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="421"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" kindref="member">info</ref>);</highlight></codeline>
<codeline lineno="422"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Read<sp/>root<sp/>dir<sp/>in<sp/>from<sp/>disk<sp/>it<sp/>is<sp/>always<sp/>0x4000<sp/>bytes<sp/>long<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="423"><highlight class="normal"><sp/><sp/><sp/><sp/>mp-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb" kindref="member">read</ref>(mp-&gt;<ref refid="structvfs__mountPoint_15683a99774aaf81116e1765eb2509df5" kindref="member">device</ref>-&gt;<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-&gt;<ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,</highlight></codeline>
<codeline lineno="424"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fsInfo-&gt;<ref refid="structubixFSInfo_16f64ea0bc1a21fca92dde6228bb194fc" kindref="member">dirCache</ref>-&gt;<ref refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" kindref="member">info</ref>,</highlight></codeline>
<codeline lineno="425"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(mp-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[mp-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].pOffset+fsInfo-&gt;<ref refid="structubixFSInfo_103867f147dbbdf3c1d6cdd16a7a33097" kindref="member">blockAllocationTable</ref>[fsInfo-&gt;<ref refid="structubixFSInfo_18c58076e25df4115ed42bebce08d5181" kindref="member">rootDir</ref>].realSector),</highlight></codeline>
<codeline lineno="426"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0x4000<sp/>/<sp/>512);</highlight></codeline>
<codeline lineno="427"><highlight class="normal"></highlight></codeline>
<codeline lineno="428"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Start<sp/>our<sp/>ubixfs_thread<sp/>to<sp/>manage<sp/>the<sp/>mount<sp/>point<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="429"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="430"><highlight class="comment"><sp/><sp/><sp/><sp/>UBU<sp/>disable<sp/>for<sp/>now</highlight></codeline>
<codeline lineno="431"><highlight class="comment"><sp/><sp/><sp/><sp/>execThread(ubixfs_Thread,(uInt32)(kmalloc(0x2000)+0x2000),0x0);</highlight></codeline>
<codeline lineno="432"><highlight class="comment"><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="433"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;<sp/><sp/>Offset:<sp/>[%i],<sp/>Partition:<sp/>[%i]\n&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="434"><highlight class="normal"><sp/><sp/><sp/><sp/>mp-&gt;<ref refid="structvfs__mountPoint_1e5ddbb2d1c7a01716a481bc5462d6c8f" kindref="member">diskLabel</ref>-&gt;<ref refid="structubixDiskLabel_1a97973cf7f0b67811080656e11c6385f" kindref="member">partitions</ref>[mp-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>].pOffset,mp-&gt;<ref refid="structvfs__mountPoint_126cf95c23f79647d61dc6396bbeb94a6" kindref="member">partition</ref>);</highlight></codeline>
<codeline lineno="435"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;UbixFS<sp/>Initialized\n&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="436"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0<ref refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" kindref="member">x1</ref>);</highlight></codeline>
<codeline lineno="437"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="438"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="439"><highlight class="normal"><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;Not<sp/>a<sp/>valid<sp/>UbixFS<sp/>disk.\n&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="440"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Return<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="441"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline>
<codeline lineno="442"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="443"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="444"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************************</highlight></codeline>
<codeline lineno="445"><highlight class="comment"></highlight></codeline>
<codeline lineno="446"><highlight class="comment">Function:<sp/>int<sp/>ubixfs_init()</highlight></codeline>
<codeline lineno="447"><highlight class="comment"></highlight></codeline>
<codeline lineno="448"><highlight class="comment">Description:<sp/>This<sp/>is<sp/>the<sp/>master<sp/>initialization<sp/>for<sp/>the<sp/>Ubix<sp/>File<sp/>System<sp/>it<sp/>will<sp/>make<sp/>the</highlight></codeline>
<codeline lineno="449"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>OS<sp/>UbixFS<sp/>aware.</highlight></codeline>
<codeline lineno="450"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>It<sp/>does<sp/>not<sp/>in<sp/>any<sp/>way<sp/>shape<sp/>or<sp/>form<sp/>connect<sp/>a<sp/>mount<sp/>point<sp/>an<sp/>medium<sp/>that<sp/>is</highlight></codeline>
<codeline lineno="451"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>upto<sp/>the<sp/>ubixfs_initialize()<sp/>function</highlight></codeline>
<codeline lineno="452"><highlight class="comment"></highlight></codeline>
<codeline lineno="453"><highlight class="comment">Notes:</highlight></codeline>
<codeline lineno="454"><highlight class="comment"></highlight></codeline>
<codeline lineno="455"><highlight class="comment">*****************************************************************************************/</highlight><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="456" refid="ubixfs_8c_11d4159e0eb816b6b23c214d7c601dcb4" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ubixfs_8h_11d4159e0eb816b6b23c214d7c601dcb4" kindref="member">ubixfs_init</ref>()<sp/>{</highlight></codeline>
<codeline lineno="457"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Set<sp/>up<sp/>our<sp/>file<sp/>system<sp/>structure<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="458"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structfileSystem" kindref="compound">fileSystem</ref><sp/>ubixFileSystem<sp/>=<sp/></highlight></codeline>
<codeline lineno="459"><highlight class="normal"><sp/><sp/><sp/>{<ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>prev<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="460"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>next<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="461"><highlight class="normal"><sp/><sp/><sp/><sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)<ref refid="ubixfs_8h_12c53ad6e6ce2e149eec9b5361dd10eda" kindref="member">ubixfs_initialize</ref>,<sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>vfsInitFS<sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="462"><highlight class="normal"><sp/><sp/><sp/><sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)<ref refid="ubixfs_8h_13882cc85dc373eba13315dfb0da4c578" kindref="member">readUbixFS</ref>,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>vfsRead<sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="463"><highlight class="normal"><sp/><sp/><sp/><sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)<ref refid="ubixfs_8h_1ba0435c266346dd10ac3cbc68655b20c" kindref="member">writeUbixFS</ref>,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>vfsWrite<sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="464"><highlight class="normal"><sp/><sp/><sp/><sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)<ref refid="ubixfs_8c_10ab17f87a44bc7bb7ee3c76262f80e94" kindref="member">openFileUbixFS</ref>,<sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>vfsOpenFile<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="465"><highlight class="normal"><sp/><sp/><sp/><sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)<ref refid="ubixfs_8h_1dfbafb62e063e24f4df09029862ba9d0" kindref="member">ubixFSUnlink</ref>,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>vfsUnlink<sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="466"><highlight class="normal"><sp/><sp/><sp/><sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)<ref refid="ubixfs_8h_1a3a7f1d4d6f7d2477798e933acf2cb3f" kindref="member">ubixFSmkDir</ref>,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>vfsMakeDir<sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="467"><highlight class="normal"><sp/><sp/><sp/><sp/>NULL,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>vfsRemDir<sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="468"><highlight class="normal"><sp/><sp/><sp/><sp/>NULL,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>vfsSync<sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="469"><highlight class="normal"><sp/><sp/><sp/><sp/>0<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>vfsType<sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="470"><highlight class="normal"><sp/><sp/><sp/>};<sp/></highlight><highlight class="comment">/*<sp/>ubixFileSystem<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="471"><highlight class="normal"></highlight></codeline>
<codeline lineno="472"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Add<sp/>UbixFS<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="473"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="vfs_8h_18652b1ccbcf7d2a872c5781640f7d59a" kindref="member">vfsRegisterFS</ref>(ubixFileSystem)<sp/>!=<sp/>0x0)<sp/>{</highlight></codeline>
<codeline lineno="474"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kpanic_8h_1db9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">&quot;Unable<sp/>To<sp/>Enable<sp/>UbixFS&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="475"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0<ref refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" kindref="member">x1</ref>);</highlight></codeline>
<codeline lineno="476"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="477"><highlight class="normal"></highlight></codeline>
<codeline lineno="478"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Return<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="479"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline>
<codeline lineno="480"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="481"><highlight class="normal"></highlight></codeline>
<codeline lineno="482"><highlight class="normal"></highlight><highlight class="comment">/***</highlight></codeline>
<codeline lineno="483"><highlight class="comment"><sp/>$Log: ubixfs_8c.xml,v $
<codeline lineno="483"><highlight class="comment"><sp/>Revision 1.6  2006/12/19 14:12:53  reddawg
<codeline lineno="483"><highlight class="comment"><sp/>rtld-elf almost workign
<codeline lineno="483"><highlight class="comment"><sp/></highlight></codeline>
<codeline lineno="484"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2006/12/05<sp/>14:10:21<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="485"><highlight class="comment"><sp/>Workign<sp/>Distro</highlight></codeline>
<codeline lineno="486"><highlight class="comment"></highlight></codeline>
<codeline lineno="487"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2006/06/01<sp/>12:46:17<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="488"><highlight class="comment"><sp/>ubix2</highlight></codeline>
<codeline lineno="489"><highlight class="comment"></highlight></codeline>
<codeline lineno="490"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2005/10/12<sp/>00:13:37<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="491"><highlight class="comment"><sp/>Removed</highlight></codeline>
<codeline lineno="492"><highlight class="comment"></highlight></codeline>
<codeline lineno="493"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2005/09/26<sp/>17:24:42<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="494"><highlight class="comment"><sp/>no<sp/>message</highlight></codeline>
<codeline lineno="495"><highlight class="comment"></highlight></codeline>
<codeline lineno="496"><highlight class="comment"><sp/>Revision<sp/>1.44<sp/><sp/>2004/08/26<sp/>22:51:19<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="497"><highlight class="comment"><sp/>TCA<sp/>touched<sp/>me<sp/>:(<sp/>i<sp/>think<sp/>he<sp/>likes<sp/>men....</highlight></codeline>
<codeline lineno="498"><highlight class="comment"></highlight></codeline>
<codeline lineno="499"><highlight class="comment"></highlight></codeline>
<codeline lineno="500"><highlight class="comment"><sp/>sched.h:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>kTask_t<sp/>added<sp/>parentPid</highlight></codeline>
<codeline lineno="501"><highlight class="comment"><sp/>endtask.c:<sp/><sp/><sp/><sp/><sp/>fixed<sp/>term<sp/>back<sp/>to<sp/>parentPid</highlight></codeline>
<codeline lineno="502"><highlight class="comment"><sp/>exec.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cleaned<sp/>warnings</highlight></codeline>
<codeline lineno="503"><highlight class="comment"><sp/>fork.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fixed<sp/>term<sp/>to<sp/>childPid</highlight></codeline>
<codeline lineno="504"><highlight class="comment"><sp/>sched.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>clean<sp/>up<sp/>for<sp/>dead<sp/>tasks</highlight></codeline>
<codeline lineno="505"><highlight class="comment"><sp/>systemtask.c:<sp/>clean<sp/>up<sp/>dead<sp/>tasks</highlight></codeline>
<codeline lineno="506"><highlight class="comment"><sp/>kmalloc.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/>cleaned<sp/>up<sp/>warnings</highlight></codeline>
<codeline lineno="507"><highlight class="comment"><sp/>udp.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cleaned<sp/>up<sp/>warnings</highlight></codeline>
<codeline lineno="508"><highlight class="comment"><sp/>bot.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cleaned<sp/>up<sp/>warnings</highlight></codeline>
<codeline lineno="509"><highlight class="comment"><sp/>shell.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cleaned<sp/>up<sp/>warnings</highlight></codeline>
<codeline lineno="510"><highlight class="comment"><sp/>tcpdump.c:<sp/><sp/><sp/><sp/><sp/>took<sp/>a<sp/>dump</highlight></codeline>
<codeline lineno="511"><highlight class="comment"><sp/>hd.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cleaned<sp/>up<sp/>warnings</highlight></codeline>
<codeline lineno="512"><highlight class="comment"><sp/>ubixfs.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stopped<sp/>prning<sp/>debug<sp/>info</highlight></codeline>
<codeline lineno="513"><highlight class="comment"></highlight></codeline>
<codeline lineno="514"><highlight class="comment"><sp/>Revision<sp/>1.43<sp/><sp/>2004/08/14<sp/>11:23:02<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="515"><highlight class="comment"><sp/>Changes</highlight></codeline>
<codeline lineno="516"><highlight class="comment"></highlight></codeline>
<codeline lineno="517"><highlight class="comment"><sp/>Revision<sp/>1.42<sp/><sp/>2004/08/09<sp/>12:58:05<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="518"><highlight class="comment"><sp/>let<sp/>me<sp/>know<sp/>when<sp/>you<sp/>got<sp/>the<sp/>surce</highlight></codeline>
<codeline lineno="519"><highlight class="comment"></highlight></codeline>
<codeline lineno="520"><highlight class="comment"><sp/>Revision<sp/>1.41<sp/><sp/>2004/08/01<sp/>17:58:39<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="521"><highlight class="comment"><sp/>chg:<sp/>fixed<sp/>string<sp/>allocation<sp/>bug<sp/>in<sp/>ubixfs_cacheNew()</highlight></codeline>
<codeline lineno="522"><highlight class="comment"></highlight></codeline>
<codeline lineno="523"><highlight class="comment"><sp/>Revision<sp/>1.40<sp/><sp/>2004/07/28<sp/>17:07:29<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="524"><highlight class="comment"><sp/>chg:<sp/>re-added<sp/>moving<sp/>cached<sp/>nodes<sp/>to<sp/>the<sp/>front<sp/>of<sp/>the<sp/>list<sp/>when<sp/>found</highlight></codeline>
<codeline lineno="525"><highlight class="comment"><sp/>add:<sp/>added<sp/>an<sp/>assert()<sp/>in<sp/>ubixfs.c</highlight></codeline>
<codeline lineno="526"><highlight class="comment"></highlight></codeline>
<codeline lineno="527"><highlight class="comment"><sp/>Revision<sp/>1.39<sp/><sp/>2004/07/27<sp/>19:24:31<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="528"><highlight class="comment"><sp/>chg:<sp/>reduced<sp/>the<sp/>number<sp/>of<sp/>debugging<sp/>statements<sp/>in<sp/>the<sp/>kernel.</highlight></codeline>
<codeline lineno="529"><highlight class="comment"></highlight></codeline>
<codeline lineno="530"><highlight class="comment"><sp/>Revision<sp/>1.38<sp/><sp/>2004/07/27<sp/>12:02:01<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="531"><highlight class="comment"><sp/>chg:<sp/>fixed<sp/>marks<sp/>bug<sp/>readFile<sp/>did<sp/>a<sp/>lookup<sp/>which<sp/>is<sp/>why<sp/>it<sp/>looked<sp/>like<sp/>it<sp/>was<sp/>loopping<sp/>so<sp/>much</highlight></codeline>
<codeline lineno="532"><highlight class="comment"></highlight></codeline>
<codeline lineno="533"><highlight class="comment"><sp/>Revision<sp/>1.37<sp/><sp/>2004/07/27<sp/>09:05:43<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="534"><highlight class="comment"><sp/>chg:<sp/>fixed<sp/>file<sp/>not<sp/>found<sp/>bug.<sp/>Still<sp/>can&apos;t<sp/>find<sp/>looping<sp/>issue</highlight></codeline>
<codeline lineno="535"><highlight class="comment"></highlight></codeline>
<codeline lineno="536"><highlight class="comment"><sp/>Revision<sp/>1.36<sp/><sp/>2004/07/27<sp/>04:05:20<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="537"><highlight class="comment"><sp/>chg:<sp/>kinda<sp/>fixed<sp/>it.<sp/>Added<sp/>bunches<sp/>of<sp/>debug<sp/>info</highlight></codeline>
<codeline lineno="538"><highlight class="comment"></highlight></codeline>
<codeline lineno="539"><highlight class="comment"><sp/>Revision<sp/>1.35<sp/><sp/>2004/07/26<sp/>19:15:49<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="540"><highlight class="comment"><sp/>test<sp/>code,<sp/>fixes<sp/>and<sp/>the<sp/>like</highlight></codeline>
<codeline lineno="541"><highlight class="comment"></highlight></codeline>
<codeline lineno="542"><highlight class="comment"><sp/>Revision<sp/>1.34<sp/><sp/>2004/07/24<sp/>23:04:44<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="543"><highlight class="comment"><sp/>Changes...<sp/>mark<sp/>let<sp/>me<sp/>know<sp/>if<sp/>you<sp/>fault<sp/>at<sp/>pid<sp/>185<sp/>when<sp/>you<sp/>type<sp/>stress</highlight></codeline>
<codeline lineno="544"><highlight class="comment"></highlight></codeline>
<codeline lineno="545"><highlight class="comment"><sp/>Revision<sp/>1.33<sp/><sp/>2004/07/23<sp/>09:10:06<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="546"><highlight class="comment"><sp/>ubixfs:<sp/>cleaned<sp/>up<sp/>some<sp/>functions<sp/>played<sp/>with<sp/>the<sp/>caching<sp/>a<sp/>bit</highlight></codeline>
<codeline lineno="547"><highlight class="comment"><sp/>vfs:<sp/><sp/><sp/><sp/>renamed<sp/>a<sp/>bunch<sp/>of<sp/>functions</highlight></codeline>
<codeline lineno="548"><highlight class="comment"><sp/>cleaned<sp/>up<sp/>a<sp/>few<sp/>misc<sp/>bugs</highlight></codeline>
<codeline lineno="549"><highlight class="comment"></highlight></codeline>
<codeline lineno="550"><highlight class="comment"><sp/>Revision<sp/>1.32<sp/><sp/>2004/07/22<sp/>23:01:51<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="551"><highlight class="comment"><sp/>Ok<sp/>checking<sp/>in<sp/>before<sp/>I<sp/>sleep</highlight></codeline>
<codeline lineno="552"><highlight class="comment"></highlight></codeline>
<codeline lineno="553"><highlight class="comment"><sp/>Revision<sp/>1.31<sp/><sp/>2004/07/22<sp/>22:37:03<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="554"><highlight class="comment"><sp/>Caching<sp/>is<sp/>working<sp/>now<sp/>the<sp/>FS<sp/>is<sp/>extremely<sp/>fast<sp/>but<sp/>needs<sp/>to<sp/>be<sp/>optimized<sp/>to<sp/>do<sp/>32bit<sp/>copies<sp/>over<sp/>8bit</highlight></codeline>
<codeline lineno="555"><highlight class="comment"></highlight></codeline>
<codeline lineno="556"><highlight class="comment"><sp/>Revision<sp/>1.30<sp/><sp/>2004/07/22<sp/>19:01:59<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="557"><highlight class="comment"><sp/>chg:<sp/>more<sp/>directory<sp/>and<sp/>file<sp/>caching</highlight></codeline>
<codeline lineno="558"><highlight class="comment"></highlight></codeline>
<codeline lineno="559"><highlight class="comment"><sp/>Revision<sp/>1.29<sp/><sp/>2004/07/22<sp/>16:34:32<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="560"><highlight class="comment"><sp/>add:<sp/>file<sp/>and<sp/>dir<sp/>caching<sp/>kinda<sp/>work</highlight></codeline>
<codeline lineno="561"><highlight class="comment"></highlight></codeline>
<codeline lineno="562"><highlight class="comment"><sp/>Revision<sp/>1.28<sp/><sp/>2004/07/21<sp/>22:07:18<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="563"><highlight class="comment"><sp/>chg:<sp/>renamed<sp/>caching<sp/>functions<sp/>(again)</highlight></codeline>
<codeline lineno="564"><highlight class="comment"></highlight></codeline>
<codeline lineno="565"><highlight class="comment"><sp/>Revision<sp/>1.27<sp/><sp/>2004/07/21<sp/>21:08:05<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="566"><highlight class="comment"><sp/>add:<sp/>added<sp/>provisions<sp/>for<sp/>file<sp/>caching</highlight></codeline>
<codeline lineno="567"><highlight class="comment"></highlight></codeline>
<codeline lineno="568"><highlight class="comment"><sp/>Revision<sp/>1.26<sp/><sp/>2004/07/20<sp/>23:21:31<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="569"><highlight class="comment"><sp/>syncing</highlight></codeline>
<codeline lineno="570"><highlight class="comment"></highlight></codeline>
<codeline lineno="571"><highlight class="comment"><sp/>Revision<sp/>1.25<sp/><sp/>2004/07/20<sp/>21:39:53<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="572"><highlight class="comment"><sp/>ubixfs:<sp/>does<sp/>propper<sp/>caching<sp/>now<sp/>problem<sp/>was<sp/>you<sp/>did<sp/>not<sp/>seek<sp/>realSector<sp/>however<sp/>the<sp/>os<sp/>starts<sp/>but<sp/>I<sp/>am<sp/>getting<sp/>a<sp/>segfault<sp/>could<sp/>be<sp/>from<sp/>anything<sp/>haven&apos;t<sp/>looked<sp/>into<sp/>it<sp/>right<sp/>quick</highlight></codeline>
<codeline lineno="573"><highlight class="comment"></highlight></codeline>
<codeline lineno="574"><highlight class="comment"><sp/>Revision<sp/>1.24<sp/><sp/>2004/07/20<sp/>21:38:08<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="575"><highlight class="comment"><sp/>try<sp/>now</highlight></codeline>
<codeline lineno="576"><highlight class="comment"></highlight></codeline>
<codeline lineno="577"><highlight class="comment"></highlight></codeline>
<codeline lineno="578"><highlight class="comment"><sp/>Revision<sp/>1.23<sp/><sp/>2004/07/20<sp/>21:35:09<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="579"><highlight class="comment"><sp/>Let<sp/>me<sp/>commit<sp/>before<sp/>we<sp/>start<sp/>to<sp/>overlap</highlight></codeline>
<codeline lineno="580"><highlight class="comment"></highlight></codeline>
<codeline lineno="581"><highlight class="comment"><sp/>Revision<sp/>1.22<sp/><sp/>2004/07/20<sp/>21:28:16<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="582"><highlight class="comment"><sp/>oops</highlight></codeline>
<codeline lineno="583"><highlight class="comment"></highlight></codeline>
<codeline lineno="584"><highlight class="comment"><sp/>Revision<sp/>1.20<sp/><sp/>2004/07/20<sp/>19:36:49<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="585"><highlight class="comment"><sp/>UBU<sp/>Tags</highlight></codeline>
<codeline lineno="586"><highlight class="comment"></highlight></codeline>
<codeline lineno="587"><highlight class="comment"><sp/>Revision<sp/>1.19<sp/><sp/>2004/07/20<sp/>18:09:37<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="588"><highlight class="comment"><sp/>add:<sp/>directory<sp/>caching<sp/>related<sp/>stuff</highlight></codeline>
<codeline lineno="589"><highlight class="comment"></highlight></codeline>
<codeline lineno="590"><highlight class="comment"><sp/>Revision<sp/>1.18<sp/><sp/>2004/07/17<sp/>03:21:34<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="591"><highlight class="comment"><sp/>chg:<sp/>cleaned<sp/>up<sp/>code;<sp/>added<sp/>assert()<sp/>statements</highlight></codeline>
<codeline lineno="592"><highlight class="comment"></highlight></codeline>
<codeline lineno="593"><highlight class="comment"><sp/>Revision<sp/>1.15<sp/><sp/>2004/07/14<sp/>12:21:49<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="594"><highlight class="comment"><sp/>ubixfs:<sp/>enableUbixFs<sp/>to<sp/>ubixfs_init</highlight></codeline>
<codeline lineno="595"><highlight class="comment"><sp/>Changed<sp/>Startup<sp/>Routines</highlight></codeline>
<codeline lineno="596"><highlight class="comment"></highlight></codeline>
<codeline lineno="597"><highlight class="comment"><sp/>Revision<sp/>1.14<sp/><sp/>2004/06/28<sp/>23:12:58<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="598"><highlight class="comment"><sp/>file<sp/>format<sp/>now<sp/>container:/path/to/file</highlight></codeline>
<codeline lineno="599"><highlight class="comment"></highlight></codeline>
<codeline lineno="600"><highlight class="comment"><sp/>Revision<sp/>1.13<sp/><sp/>2004/06/28<sp/>18:12:44<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="601"><highlight class="comment"><sp/>We<sp/>need<sp/>these<sp/>files</highlight></codeline>
<codeline lineno="602"><highlight class="comment"></highlight></codeline>
<codeline lineno="603"><highlight class="comment"><sp/>Revision<sp/>1.12<sp/><sp/>2004/06/28<sp/>11:57:58<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="604"><highlight class="comment"><sp/>Fixing<sp/>Up<sp/>Filesystem</highlight></codeline>
<codeline lineno="605"><highlight class="comment"></highlight></codeline>
<codeline lineno="606"><highlight class="comment"><sp/>Revision<sp/>1.10<sp/><sp/>2004/06/04<sp/>13:20:22<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="607"><highlight class="comment"><sp/>ubixFSmkDir():<sp/>played<sp/>with<sp/>it<sp/>a<sp/>bit<sp/>to<sp/>see<sp/>if<sp/>it<sp/>still<sp/>worked</highlight></codeline>
<codeline lineno="608"><highlight class="comment"></highlight></codeline>
<codeline lineno="609"><highlight class="comment"><sp/>Revision<sp/>1.9<sp/><sp/>2004/06/04<sp/>10:19:42<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="610"><highlight class="comment"><sp/>notes:<sp/>we<sp/>compile<sp/>again,<sp/>thank<sp/>g-d<sp/>anyways<sp/>i<sp/>was<sp/>about<sp/>to<sp/>cry</highlight></codeline>
<codeline lineno="611"><highlight class="comment"></highlight></codeline>
<codeline lineno="612"><highlight class="comment"><sp/>Revision<sp/>1.8<sp/><sp/>2004/06/01<sp/>00:04:53<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="613"><highlight class="comment"><sp/>Try<sp/>now<sp/>mark</highlight></codeline>
<codeline lineno="614"><highlight class="comment"></highlight></codeline>
<codeline lineno="615"><highlight class="comment"><sp/>Revision<sp/>1.7<sp/><sp/>2004/05/19<sp/>15:20:06<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="616"><highlight class="comment"><sp/>Fixed<sp/>reference<sp/>problems<sp/>due<sp/>to<sp/>changes<sp/>in<sp/>drive<sp/>subsystem</highlight></codeline>
<codeline lineno="617"><highlight class="comment"></highlight></codeline>
<codeline lineno="618"><highlight class="comment"><sp/>Revision<sp/>1.6<sp/><sp/>2004/05/19<sp/>04:07:43<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="619"><highlight class="comment"><sp/>kmalloc(size,pid)<sp/>no<sp/>more<sp/>it<sp/>is<sp/>no<sp/>kmalloc(size);<sp/>the<sp/>way<sp/>it<sp/>should<sp/>of<sp/>been</highlight></codeline>
<codeline lineno="620"><highlight class="comment"></highlight></codeline>
<codeline lineno="621"><highlight class="comment"><sp/>Revision<sp/>1.5<sp/><sp/>2004/04/29<sp/>15:45:19<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="622"><highlight class="comment"><sp/>Fixed<sp/>some<sp/>bugs<sp/>so<sp/>now<sp/>the<sp/>automade<sp/>images<sp/>will<sp/>work<sp/>correctly</highlight></codeline>
<codeline lineno="623"><highlight class="comment"></highlight></codeline>
<codeline lineno="624"><highlight class="comment"><sp/>Revision<sp/>1.4<sp/><sp/>2004/04/28<sp/>21:10:40<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="625"><highlight class="comment"><sp/>Lots<sp/>Of<sp/>changes<sp/>to<sp/>make<sp/>it<sp/>work<sp/>with<sp/>existing<sp/>os</highlight></codeline>
<codeline lineno="626"><highlight class="comment"></highlight></codeline>
<codeline lineno="627"><highlight class="comment"><sp/>Revision<sp/>1.3<sp/><sp/>2004/04/28<sp/>13:33:09<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="628"><highlight class="comment"><sp/>Overhaul<sp/>to<sp/>ubixfs<sp/>and<sp/>boot<sp/>loader<sp/>and<sp/>MBR<sp/>to<sp/>work<sp/>well<sp/>with<sp/>our<sp/>schema</highlight></codeline>
<codeline lineno="629"><highlight class="comment"><sp/>now<sp/>BAT<sp/>and<sp/>dir<sp/>and<sp/>file<sp/>entries<sp/>are<sp/>all<sp/>offset<sp/>64Sectors<sp/>from<sp/>the<sp/>start<sp/>of<sp/>the<sp/>partition</highlight></codeline>
<codeline lineno="630"><highlight class="comment"></highlight></codeline>
<codeline lineno="631"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2004/04/28<sp/>02:22:55<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="632"><highlight class="comment"><sp/>This<sp/>is<sp/>a<sp/>fiarly<sp/>large<sp/>commit<sp/>but<sp/>we<sp/>are<sp/>starting<sp/>to<sp/>use<sp/>new<sp/>driver<sp/>model</highlight></codeline>
<codeline lineno="633"><highlight class="comment"><sp/>all<sp/>around</highlight></codeline>
<codeline lineno="634"><highlight class="comment"></highlight></codeline>
<codeline lineno="635"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2004/04/15<sp/>12:07:08<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="636"><highlight class="comment"><sp/>UbixOS<sp/>v1.0</highlight></codeline>
<codeline lineno="637"><highlight class="comment"></highlight></codeline>
<codeline lineno="638"><highlight class="comment"><sp/>Revision<sp/>1.31<sp/><sp/>2004/04/13<sp/>16:36:34<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="639"><highlight class="comment"><sp/>Changed<sp/>our<sp/>copyright,<sp/>it<sp/>is<sp/>all<sp/>now<sp/>under<sp/>a<sp/>BSD-Style<sp/>license</highlight></codeline>
<codeline lineno="640"><highlight class="comment"></highlight></codeline>
<codeline lineno="641"><highlight class="comment"><sp/>END</highlight></codeline>
<codeline lineno="642"><highlight class="comment"><sp/>***/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="643"><highlight class="normal"></highlight></codeline>
    </programlisting>
    <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/ubixfs.c"/>
  </compounddef>
</doxygen>
