<?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="dirCache_8c" kind="file">
    <compoundname>dirCache.c</compoundname>
    <includes refid="assert_8h" local="no">assert.h</includes>
    <includes refid="dirCache_8h" local="no">ubixfs/dirCache.h</includes>
    <includes refid="ubixfs_8h" local="no">ubixfs/ubixfs.h</includes>
    <includes refid="kmalloc_8h" local="no">lib/kmalloc.h</includes>
    <includes refid="kprintf_8h" local="no">lib/kprintf.h</includes>
    <includes refid="lib_2string_8h" local="no">lib/string.h</includes>
    <includes refid="spinlock_8h" local="no">ubixos/spinlock.h</includes>
    <incdepgraph>
      <node id="5925">
        <label>sys/thread.h</label>
        <link refid="thread_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
      </node>
      <node id="5928">
        <label>ubixos/sched.h</label>
        <link refid="sched_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
        <childnode refid="5929" relation="include">
        </childnode>
        <childnode refid="5921" relation="include">
        </childnode>
        <childnode refid="5930" relation="include">
        </childnode>
        <childnode refid="5925" relation="include">
        </childnode>
      </node>
      <node id="5934">
        <label>ubixos/spinlock.h</label>
        <link refid="spinlock_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
      </node>
      <node id="5917">
        <label>ubixos/types.h</label>
        <link refid="types_8h"/>
        <childnode refid="5918" relation="include">
        </childnode>
      </node>
      <node id="5918">
        <label>sys/_types.h</label>
        <link refid="__types_8h"/>
      </node>
      <node id="5933">
        <label>lib/string.h</label>
        <link refid="lib_2string_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
      </node>
      <node id="5921">
        <label>vfs/file.h</label>
        <link refid="file_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
        <childnode refid="5916" relation="include">
        </childnode>
        <childnode refid="5922" relation="include">
        </childnode>
      </node>
      <node id="5930">
        <label>sys/tss.h</label>
        <link refid="tss_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
      </node>
      <node id="5931">
        <label>lib/kmalloc.h</label>
        <link refid="kmalloc_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
      </node>
      <node id="5927">
        <label>mpi/mpi.h</label>
        <link refid="mpi_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
        <childnode refid="5928" relation="include">
        </childnode>
      </node>
      <node id="5914">
        <label>src/sys/ubixfs/dirCache.c</label>
        <link refid="dirCache.c"/>
        <childnode refid="5915" relation="include">
        </childnode>
        <childnode refid="5916" relation="include">
        </childnode>
        <childnode refid="5919" relation="include">
        </childnode>
        <childnode refid="5931" relation="include">
        </childnode>
        <childnode refid="5932" relation="include">
        </childnode>
        <childnode refid="5933" relation="include">
        </childnode>
        <childnode refid="5934" relation="include">
        </childnode>
      </node>
      <node id="5920">
        <label>vfs/vfs.h</label>
        <link refid="vfs_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
        <childnode refid="5921" relation="include">
        </childnode>
        <childnode refid="5922" relation="include">
        </childnode>
        <childnode refid="5923" relation="include">
        </childnode>
        <childnode refid="5925" relation="include">
        </childnode>
      </node>
      <node id="5922">
        <label>vfs/mount.h</label>
        <link refid="mount_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
      </node>
      <node id="5932">
        <label>lib/kprintf.h</label>
        <link refid="kprintf_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
      </node>
      <node id="5919">
        <label>ubixfs/ubixfs.h</label>
        <link refid="ubixfs_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
        <childnode refid="5920" relation="include">
        </childnode>
        <childnode refid="5926" relation="include">
        </childnode>
        <childnode refid="5927" relation="include">
        </childnode>
        <childnode refid="5916" relation="include">
        </childnode>
      </node>
      <node id="5915">
        <label>assert.h</label>
        <link refid="assert_8h"/>
      </node>
      <node id="5916">
        <label>ubixfs/dirCache.h</label>
        <link refid="dirCache_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
      </node>
      <node id="5923">
        <label>sys/sysproto.h</label>
        <link refid="sysproto_8h"/>
        <childnode refid="5924" relation="include">
        </childnode>
        <childnode refid="5925" relation="include">
        </childnode>
      </node>
      <node id="5924">
        <label>sys/signal.h</label>
        <link refid="signal_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
      </node>
      <node id="5929">
        <label>ubixos/tty.h</label>
        <link refid="tty_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
      </node>
      <node id="5926">
        <label>sys/device.h</label>
        <link refid="device_8h"/>
        <childnode refid="5917" relation="include">
        </childnode>
      </node>
    </incdepgraph>
      <sectiondef kind="func">
      <memberdef kind="function" id="dirCache_8c_17d1df32bd197ba6541d9d7d2b3ada512" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="structcacheNode" kindref="compound">cacheNode</ref> *</type>
        <definition>struct cacheNode* ubixfs_cacheAdd</definition>
        <argsstring>(struct cacheNode *node, struct cacheNode *newNode)</argsstring>
        <name>ubixfs_cacheAdd</name>
        <param>
          <type>struct <ref refid="structcacheNode" kindref="compound">cacheNode</ref> *</type>
          <declname>node</declname>
        </param>
        <param>
          <type>struct <ref refid="structcacheNode" kindref="compound">cacheNode</ref> *</type>
          <declname>newNode</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c" line="242" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c" bodystart="242" bodyend="259"/>
        <references refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" compoundref="assert_8h" startline="64">assert</references>
        <references refid="dirCache_8c_1980ccf1ee1ec5dbd904477a7f8c7877b" compoundref="dirCache_8c" startline="39">dca_spinLock</references>
        <references refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" compoundref="dirCache_8h" startline="12">cacheNode::fileListHead</references>
        <references refid="structcacheNode_1b464ff24189c8c4ceb4f5fdbbd7350fe" compoundref="dirCache_8h" startline="13">cacheNode::fileListTail</references>
        <references refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" compoundref="dirCache_8h" startline="10">cacheNode::next</references>
        <references refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="types_8h" startline="36">NULL</references>
        <references refid="structcacheNode_19703432cc616e60df366d82314ac655d" compoundref="dirCache_8h" startline="11">cacheNode::parent</references>
        <references refid="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" compoundref="dirCache_8h" startline="9">cacheNode::prev</references>
        <references refid="spinlock_8h_12cd9a4502680fb8e7f0fe6b029e558b1" compoundref="spinlock_8c" startline="56" endline="62">spinLock</references>
        <references refid="spinlock_8h_1dd996cbbb3b9826dd9c8cf02b66a4c65" compoundref="spinlock_8c" startline="37" endline="46">spinUnlock</references>
        <referencedby refid="dirCache_8c_1569466a2e1237cf70320144d3de976c6" compoundref="dirCache_8c" startline="55" endline="182">ubixfs_cacheFind</referencedby>
      </memberdef>
      <memberdef kind="function" id="dirCache_8c_1472e166c2202b92faa451f2ae9906882" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void ubixfs_cacheDelete</definition>
        <argsstring>(struct cacheNode **head)</argsstring>
        <name>ubixfs_cacheDelete</name>
        <param>
          <type>struct <ref refid="structcacheNode" kindref="compound">cacheNode</ref> **</type>
          <declname>head</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c" line="202" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c" bodystart="202" bodyend="228"/>
        <references refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" compoundref="dirCache_8h" startline="12">cacheNode::fileListHead</references>
        <references refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" compoundref="dirCache_8h" startline="14">cacheNode::info</references>
        <references refid="kmalloc_8h_1aa9ed6886459604cf73ccdbf6410e487" compoundref="kmalloc_8c" startline="351" endline="391">kfree</references>
        <references refid="structcacheNode_1c3e3d36eedc34c8662965776ff6ba421" compoundref="dirCache_8h" startline="8">cacheNode::name</references>
        <references refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" compoundref="dirCache_8h" startline="10">cacheNode::next</references>
        <references refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="types_8h" startline="36">NULL</references>
        <references refid="dirCache_8h_1a31fa0816ce9018ef327f17a48b36d3c" compoundref="dirCache_8c" startline="202" endline="228">ubixfs_cacheDelete</references>
        <referencedby refid="dirCache_8c_1472e166c2202b92faa451f2ae9906882" compoundref="dirCache_8c" startline="202" endline="228">ubixfs_cacheDelete</referencedby>
      </memberdef>
      <memberdef kind="function" id="dirCache_8c_1569466a2e1237cf70320144d3de976c6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="structcacheNode" kindref="compound">cacheNode</ref> *</type>
        <definition>struct cacheNode* ubixfs_cacheFind</definition>
        <argsstring>(struct cacheNode *head, char *name)</argsstring>
        <name>ubixfs_cacheFind</name>
        <param>
          <type>struct <ref refid="structcacheNode" kindref="compound">cacheNode</ref> *</type>
          <declname>head</declname>
        </param>
        <param>
          <type>char *</type>
          <declname>name</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c" line="55" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c" bodystart="55" bodyend="182"/>
        <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="dirCache_8c_1980ccf1ee1ec5dbd904477a7f8c7877b" compoundref="dirCache_8c" startline="39">dca_spinLock</references>
        <references refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" compoundref="directory_8c" startline="38">dirList</references>
        <references refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" compoundref="dirCache_8h" startline="12">cacheNode::fileListHead</references>
        <references refid="structcacheNode_1b464ff24189c8c4ceb4f5fdbbd7350fe" compoundref="dirCache_8h" startline="13">cacheNode::fileListTail</references>
        <references refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" compoundref="dirCache_8h" startline="14">cacheNode::info</references>
        <references refid="structcacheNode_1c3e3d36eedc34c8662965776ff6ba421" compoundref="dirCache_8h" startline="8">cacheNode::name</references>
        <references refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" compoundref="dirCache_8h" startline="10">cacheNode::next</references>
        <references refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="types_8h" startline="36">NULL</references>
        <references refid="structcacheNode_19703432cc616e60df366d82314ac655d" compoundref="dirCache_8h" startline="11">cacheNode::parent</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="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" compoundref="dirCache_8h" startline="9">cacheNode::prev</references>
        <references refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" compoundref="dirCache_8h" startline="15">cacheNode::size</references>
        <references refid="spinlock_8h_12cd9a4502680fb8e7f0fe6b029e558b1" compoundref="spinlock_8c" startline="56" endline="62">spinLock</references>
        <references refid="spinlock_8h_1dd996cbbb3b9826dd9c8cf02b66a4c65" compoundref="spinlock_8c" startline="37" endline="46">spinUnlock</references>
        <references refid="structcacheNode_1a3fa99dfac99663d5448d74594120521" compoundref="dirCache_8h" startline="18">cacheNode::startCluster</references>
        <references refid="lib_2string_8h_16f3dcb20ff11ff9db5904c3cfb61a38c" compoundref="string_8c" startline="32" endline="46">strcmp</references>
        <references refid="ubixfs_8h_1e1596b995fc42be2fe1cfbe0ee9b8d61" compoundref="ubixfs_8h" startline="51">typeFile</references>
        <references refid="dirCache_8h_142dd78873d67b29f68a271fc30a60bf4" compoundref="dirCache_8c" startline="242" endline="259">ubixfs_cacheAdd</references>
        <references refid="dirCache_8h_1d136be51f0e49671914a4f0db3bb2314" compoundref="dirCache_8c" startline="55" endline="182">ubixfs_cacheFind</references>
        <references refid="dirCache_8h_1adfffea5ad577cecdfbc4eb7989cf193" compoundref="dirCache_8c" startline="185" endline="199">ubixfs_cacheNew</references>
        <references refid="dirCache_8c_1ee88b75cf4360a46adb5021e358625d3" compoundref="dirCache_8c" startline="43" endline="52">ubixfs_findName</references>
        <referencedby refid="ubixfs_8c_10ab17f87a44bc7bb7ee3c76262f80e94" compoundref="ubixfs_8c" startline="46" endline="116">openFileUbixFS</referencedby>
        <referencedby refid="dirCache_8c_1569466a2e1237cf70320144d3de976c6" compoundref="dirCache_8c" startline="55" endline="182">ubixfs_cacheFind</referencedby>
      </memberdef>
      <memberdef kind="function" id="dirCache_8c_1169a7d814e5ab80f123e5193a81b70b2" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="structcacheNode" kindref="compound">cacheNode</ref> *</type>
        <definition>struct cacheNode* ubixfs_cacheNew</definition>
        <argsstring>(const char *name)</argsstring>
        <name>ubixfs_cacheNew</name>
        <param>
          <type>const char *</type>
          <declname>name</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c" line="185" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c" bodystart="185" bodyend="199"/>
        <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="structcacheNode_1eebb0a0956a22f5d0ff55223aa918c53" compoundref="dirCache_8h" startline="17">cacheNode::dirty</references>
        <references refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" compoundref="dirCache_8h" startline="12">cacheNode::fileListHead</references>
        <references refid="structcacheNode_1b464ff24189c8c4ceb4f5fdbbd7350fe" compoundref="dirCache_8h" startline="13">cacheNode::fileListTail</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="structcacheNode_1c3e3d36eedc34c8662965776ff6ba421" compoundref="dirCache_8h" startline="8">cacheNode::name</references>
        <references refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" compoundref="dirCache_8h" startline="10">cacheNode::next</references>
        <references refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="types_8h" startline="36">NULL</references>
        <references refid="structcacheNode_19703432cc616e60df366d82314ac655d" compoundref="dirCache_8h" startline="11">cacheNode::parent</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="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" compoundref="dirCache_8h" startline="9">cacheNode::prev</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="strcpy_8S_19132520cc79236b654666f4ddc1b516c" compoundref="strcpy_8S" startline="3">strcpy</references>
        <references refid="strlen_8S_10bcafbeba7f59f157715cc462036b8d3" compoundref="strlen_8S" startline="4">strlen</references>
        <referencedby refid="dirCache_8c_1569466a2e1237cf70320144d3de976c6" compoundref="dirCache_8c" startline="55" endline="182">ubixfs_cacheFind</referencedby>
        <referencedby refid="ubixfs_8c_132762e2563015d124909f3317c2a7423" compoundref="ubixfs_8c" startline="376" endline="442">ubixfs_initialize</referencedby>
      </memberdef>
      <memberdef kind="function" id="dirCache_8c_1ee88b75cf4360a46adb5021e358625d3" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>struct <ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref> *</type>
        <definition>static struct directoryEntry* ubixfs_findName</definition>
        <argsstring>(struct directoryEntry *dirList, uInt32 size, char *name)</argsstring>
        <name>ubixfs_findName</name>
        <param>
          <type>struct <ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref> *</type>
          <declname>dirList</declname>
        </param>
        <param>
          <type><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref></type>
          <declname>size</declname>
        </param>
        <param>
          <type>char *</type>
          <declname>name</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c" line="43" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c" bodystart="43" bodyend="52"/>
        <references refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" compoundref="directory_8c" startline="38">dirList</references>
        <references refid="structdirectoryEntry_161e77c256eaf6c4e7fe56d2574f16f98" compoundref="ubixfs_8h" startline="112">directoryEntry::fileName</references>
        <references refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="types_8h" startline="36">NULL</references>
        <references refid="lib_2string_8h_16f3dcb20ff11ff9db5904c3cfb61a38c" compoundref="string_8c" startline="32" endline="46">strcmp</references>
        <referencedby refid="dirCache_8c_1569466a2e1237cf70320144d3de976c6" compoundref="dirCache_8c" startline="55" endline="182">ubixfs_cacheFind</referencedby>
      </memberdef>
      </sectiondef>
      <sectiondef kind="var">
      <memberdef kind="variable" id="dirCache_8c_1980ccf1ee1ec5dbd904477a7f8c7877b" prot="public" static="yes" mutable="no">
        <type><ref refid="spinlock_8h_1a240e9404b4ede1e0d714610080d1176" kindref="member">spinLock_t</ref></type>
        <definition>spinLock_t dca_spinLock</definition>
        <argsstring></argsstring>
        <name>dca_spinLock</name>
        <initializer> SPIN_LOCK_INITIALIZER</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c" line="39" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c" bodystart="39" bodyend="-1"/>
        <referencedby refid="dirCache_8c_17d1df32bd197ba6541d9d7d2b3ada512" compoundref="dirCache_8c" startline="242" endline="259">ubixfs_cacheAdd</referencedby>
        <referencedby refid="dirCache_8c_1569466a2e1237cf70320144d3de976c6" compoundref="dirCache_8c" startline="55" endline="182">ubixfs_cacheFind</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<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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">$Id: dirCache_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="assert_8h" kindref="compound">assert.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="ubixfs_8h" kindref="compound">ubixfs/ubixfs.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="33"><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="34"><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="35"><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="36"><highlight class="normal"></highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="spinlock_8h" kindref="compound">ubixos/spinlock.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="38"><highlight class="normal"></highlight></codeline>
<codeline lineno="39" refid="dirCache_8c_1980ccf1ee1ec5dbd904477a7f8c7877b" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="spinlock_8h_1a240e9404b4ede1e0d714610080d1176" kindref="member">spinLock_t</ref><sp/><ref refid="dirCache_8c_1980ccf1ee1ec5dbd904477a7f8c7877b" kindref="member">dca_spinLock</ref><sp/>=<sp/><ref refid="spinlock_8h_10fe85a4f3642683148b25916d6c5eafd" kindref="member">SPIN_LOCK_INITIALIZER</ref>;</highlight></codeline>
<codeline lineno="40"><highlight class="normal"></highlight></codeline>
<codeline lineno="41"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="42"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref><sp/>*</highlight></codeline>
<codeline lineno="43" refid="dirCache_8c_1ee88b75cf4360a46adb5021e358625d3" refkind="member"><highlight class="normal"><ref refid="dirCache_8c_1ee88b75cf4360a46adb5021e358625d3" kindref="member">ubixfs_findName</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref><sp/>*<sp/><ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>,<sp/><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/><ref refid="structdirectoryEntry_19571030f709f6926b925e552660a65ab" kindref="member">size</ref>,<sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/><ref refid="pci_8c_18f8f80d37794cde9472343e4487ba3eb" kindref="member">name</ref>)<sp/>{</highlight></codeline>
<codeline lineno="44"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i;</highlight></codeline>
<codeline lineno="45"><highlight class="normal"></highlight></codeline>
<codeline lineno="46"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref><sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref><sp/>||<sp/>name<sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="47"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//UBU<sp/>kprintf(&quot;dirList:<sp/>[0x%X],name:<sp/>[0x%X]\n&quot;,dirList,name);</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="48"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0;<sp/>i<sp/>&lt;<sp/>(size<sp/>/<sp/></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>))<sp/>;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="lib_2string_8h_16f3dcb20ff11ff9db5904c3cfb61a38c" kindref="member">strcmp</ref>(<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>[i].<ref refid="structdirectoryEntry_161e77c256eaf6c4e7fe56d2574f16f98" kindref="member">fileName</ref>,<sp/>name)<sp/>==<sp/>0)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>&amp;<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>[i];</highlight></codeline>
<codeline lineno="50"><highlight class="normal"><sp/><sp/>}<sp/></highlight><highlight class="comment">/*<sp/>for<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="51"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="52"><highlight class="normal">}<sp/></highlight><highlight class="comment">/*<sp/>ubixfs_findName<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="53"><highlight class="normal"></highlight></codeline>
<codeline lineno="54"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*</highlight></codeline>
<codeline lineno="55" refid="dirCache_8c_1569466a2e1237cf70320144d3de976c6" refkind="member"><highlight class="normal"><ref refid="dirCache_8h_1d136be51f0e49671914a4f0db3bb2314" kindref="member">ubixfs_cacheFind</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*<sp/>head,<sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/><ref refid="pci_8c_18f8f80d37794cde9472343e4487ba3eb" kindref="member">name</ref>)<sp/>{</highlight></codeline>
<codeline lineno="56"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*<sp/>tmp<sp/>=<sp/>head;</highlight></codeline>
<codeline lineno="57"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref><sp/>*<sp/><ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref><sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="58"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>0x0;</highlight></codeline>
<codeline lineno="59"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>dirName[256];</highlight></codeline>
<codeline lineno="60"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/>nextDir<sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="61"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>kprintf(&quot;looking<sp/>for<sp/>%s\n&quot;,<sp/>name);<sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="62"><highlight class="normal"><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(name);</highlight></codeline>
<codeline lineno="63"><highlight class="normal"><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(head);</highlight></codeline>
<codeline lineno="64"><highlight class="normal"><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(*name);</highlight></codeline>
<codeline lineno="65"><highlight class="normal"><sp/><sp/><ref refid="spinlock_8h_12cd9a4502680fb8e7f0fe6b029e558b1" kindref="member">spinLock</ref>(&amp;<ref refid="dirCache_8c_1980ccf1ee1ec5dbd904477a7f8c7877b" kindref="member">dca_spinLock</ref>);</highlight></codeline>
<codeline lineno="66"><highlight class="normal"><sp/><sp/><ref refid="spinlock_8h_1dd996cbbb3b9826dd9c8cf02b66a4c65" kindref="member">spinUnlock</ref>(&amp;<ref refid="dirCache_8c_1980ccf1ee1ec5dbd904477a7f8c7877b" kindref="member">dca_spinLock</ref>);</highlight></codeline>
<codeline lineno="67"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(name<sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref><sp/>||<sp/>head<sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="68"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(*name<sp/>==<sp/></highlight><highlight class="charliteral">&apos;\0&apos;</highlight><highlight class="normal">)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="69"><highlight class="normal"></highlight></codeline>
<codeline lineno="70"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/></highlight></codeline>
<codeline lineno="71"><highlight class="comment"><sp/><sp/><sp/>*<sp/>walk<sp/>down<sp/>the<sp/>tree<sp/>recursively<sp/>until<sp/>we<sp/>find<sp/>the<sp/>node<sp/>we&apos;re<sp/>looking</highlight></codeline>
<codeline lineno="72"><highlight class="comment"><sp/><sp/><sp/>*<sp/>for</highlight></codeline>
<codeline lineno="73"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="74"><highlight class="normal"><sp/><sp/>i<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="75"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(name[i]<sp/>!=<sp/></highlight><highlight class="charliteral">&apos;\0&apos;</highlight><highlight class="normal"><sp/>&amp;&amp;<sp/>name[i]<sp/>!=<sp/></highlight><highlight class="charliteral">&apos;/&apos;</highlight><highlight class="normal"><sp/>&amp;&amp;<sp/>i<sp/>&lt;<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(dirName))<sp/>{</highlight></codeline>
<codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/>dirName[i]<sp/>=<sp/>name[i];</highlight></codeline>
<codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/>i++;</highlight></codeline>
<codeline lineno="78"><highlight class="normal"><sp/><sp/>}<sp/></highlight><highlight class="comment">/*<sp/>while<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="79"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(i<sp/>&lt;<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(dirName));</highlight></codeline>
<codeline lineno="80"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(i<sp/>==<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(dirName))<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="81"><highlight class="normal"></highlight></codeline>
<codeline lineno="82"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(i<sp/>==<sp/>0)<sp/>dirName[i++]<sp/>=<sp/></highlight><highlight class="charliteral">&apos;/&apos;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="83"><highlight class="normal"></highlight></codeline>
<codeline lineno="84"><highlight class="normal"><sp/><sp/>dirName[i]<sp/>=<sp/></highlight><highlight class="charliteral">&apos;\0&apos;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="85"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="86"><highlight class="normal"><sp/><sp/>nextDir<sp/>=<sp/>&amp;name[i];</highlight></codeline>
<codeline lineno="87"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(*nextDir<sp/>==<sp/></highlight><highlight class="charliteral">&apos;/&apos;</highlight><highlight class="normal">)<sp/>nextDir++;</highlight></codeline>
<codeline lineno="88"><highlight class="normal"></highlight></codeline>
<codeline lineno="89"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/></highlight></codeline>
<codeline lineno="90"><highlight class="comment"><sp/><sp/><sp/>*<sp/>nextDir<sp/>points<sp/>to<sp/>the<sp/>next<sp/>dir</highlight></codeline>
<codeline lineno="91"><highlight class="comment"><sp/><sp/><sp/>*<sp/>name<sp/>points<sp/>to<sp/>a<sp/>null<sp/>terminated<sp/>directory<sp/>name</highlight></codeline>
<codeline lineno="92"><highlight class="comment"><sp/><sp/><sp/>*<sp/>if<sp/>nextDir<sp/>isn&apos;t<sp/>null,<sp/>then<sp/>make<sp/>sure<sp/>that<sp/>this<sp/>dir<sp/>is<sp/>present</highlight></codeline>
<codeline lineno="93"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="94"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>kprintf(&quot;nextdir:<sp/>%s<sp/><sp/>--<sp/>dirName:<sp/>%s\n&quot;,<sp/>nextDir,<sp/>dirName);<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="95"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(*nextDir<sp/>!=<sp/></highlight><highlight class="charliteral">&apos;\0&apos;</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="96"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(tmp<sp/>!=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/>{</highlight></codeline>
<codeline lineno="97"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//UBU<sp/>kprintf(&quot;tmp-&gt;name:<sp/>[0x%X],dirName:<sp/>[0x%X]\n&quot;,tmp-&gt;name,dirName);</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="98"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="lib_2string_8h_16f3dcb20ff11ff9db5904c3cfb61a38c" kindref="member">strcmp</ref>(tmp-&gt;<ref refid="structcacheNode_1c3e3d36eedc34c8662965776ff6ba421" kindref="member">name</ref>,<sp/>dirName)<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="99"><highlight class="normal"></highlight></codeline>
<codeline lineno="100"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((*tmp-&gt;<ref refid="structcacheNode_176defc9430363558ce5a96f72fa7b1d4" kindref="member">attributes</ref><sp/>&amp;<sp/><ref refid="ubixfs_8h_1e1596b995fc42be2fe1cfbe0ee9b8d61" kindref="member">typeFile</ref>)<sp/>==<sp/><ref refid="ubixfs_8h_1e1596b995fc42be2fe1cfbe0ee9b8d61" kindref="member">typeFile</ref><sp/></highlight></codeline>
<codeline lineno="101"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>||<sp/>tmp-&gt;<ref refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" kindref="member">fileListHead</ref><sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/>{</highlight></codeline>
<codeline lineno="102"><highlight class="normal"></highlight></codeline>
<codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>if<sp/>we&apos;re<sp/>here,<sp/>then<sp/>there<sp/>are<sp/>no<sp/>subdirs<sp/>cached<sp/>to<sp/>look<sp/>through<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="104"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref><sp/>=<sp/><ref refid="dirCache_8c_1ee88b75cf4360a46adb5021e358625d3" kindref="member">ubixfs_findName</ref>((</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref><sp/>*)head-&gt;<ref refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" kindref="member">info</ref>,</highlight></codeline>
<codeline lineno="105"><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/><sp/><sp/><sp/><sp/><sp/><sp/>*head-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref>,<sp/>nextDir);</highlight></codeline>
<codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref><sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="107"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>kprintf(&quot;creating<sp/>new<sp/>node<sp/>%s&quot;,<sp/>dirList-&gt;fileName);<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tmp<sp/>=<sp/><ref refid="dirCache_8h_142dd78873d67b29f68a271fc30a60bf4" kindref="member">ubixfs_cacheAdd</ref>(tmp,<sp/><ref refid="dirCache_8h_1adfffea5ad577cecdfbc4eb7989cf193" kindref="member">ubixfs_cacheNew</ref>(<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>-&gt;fileName));</highlight></codeline>
<codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_176defc9430363558ce5a96f72fa7b1d4" kindref="member">attributes</ref><sp/>=<sp/>&amp;<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>-&gt;attributes;</highlight></codeline>
<codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_11eccf5ffd0b1a3479e0e630373cff5af" kindref="member">permissions</ref><sp/>=<sp/>&amp;<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>-&gt;permissions;</highlight></codeline>
<codeline lineno="111"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref><sp/>=<sp/>&amp;<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>-&gt;size;</highlight></codeline>
<codeline lineno="112"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>kprintf(&quot;<sp/><sp/><sp/>size:<sp/>%d\n&quot;,<sp/>*tmp-&gt;size);<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_1a3fa99dfac99663d5448d74594120521" kindref="member">startCluster</ref><sp/>=<sp/>&amp;<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>-&gt;startCluster;</highlight></codeline>
<codeline lineno="114"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_18b26b1b3dbe3f8cb72627e09e6c8e353" kindref="member">present</ref><sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="115"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>tmp;</highlight></codeline>
<codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="dirCache_8h_1d136be51f0e49671914a4f0db3bb2314" kindref="member">ubixfs_cacheFind</ref>(tmp-&gt;<ref refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" kindref="member">fileListHead</ref>,<sp/>nextDir);</highlight></codeline>
<codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="119"><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="120"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>tmp<sp/>=<sp/>tmp-&gt;<ref refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" kindref="member">next</ref>;</highlight></codeline>
<codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="comment">/*<sp/>while<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>it<sp/>wasn&apos;t<sp/>present,<sp/>return<sp/>NULL<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="123"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="124"><highlight class="normal"><sp/><sp/>}<sp/></highlight><highlight class="comment">/*<sp/>if<sp/>*/</highlight><highlight class="normal"><sp/></highlight></codeline>
<codeline lineno="125"><highlight class="normal"></highlight></codeline>
<codeline lineno="126"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="127"><highlight class="comment"><sp/><sp/><sp/>*<sp/>if<sp/>nextDir<sp/>was<sp/>null,<sp/>then<sp/>we&apos;re<sp/>at<sp/>the<sp/>bottom<sp/>level.<sp/>Look<sp/>for<sp/>the</highlight></codeline>
<codeline lineno="128"><highlight class="comment"><sp/><sp/><sp/>*<sp/>dir<sp/>listing<sp/>here<sp/></highlight></codeline>
<codeline lineno="129"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="130"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(tmp<sp/>!=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/>{</highlight></codeline>
<codeline lineno="131"><highlight class="normal"></highlight></codeline>
<codeline lineno="132"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(tmp-&gt;<ref refid="structcacheNode_1c3e3d36eedc34c8662965776ff6ba421" kindref="member">name</ref>);</highlight></codeline>
<codeline lineno="133"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(name);</highlight></codeline>
<codeline lineno="134"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>don&apos;t<sp/>forget<sp/>to<sp/>check<sp/>to<sp/>see<sp/>if<sp/>it&apos;s<sp/>a<sp/>directory<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="135"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//UBU<sp/>kprintf(&quot;tmpName:<sp/>[0x%X],<sp/>name:<sp/>[0x%X]\n&quot;,tmp-&gt;name,name);</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="136"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="lib_2string_8h_16f3dcb20ff11ff9db5904c3cfb61a38c" kindref="member">strcmp</ref>(tmp-&gt;<ref refid="structcacheNode_1c3e3d36eedc34c8662965776ff6ba421" kindref="member">name</ref>,<sp/>name)<sp/>==<sp/>0)<sp/>{</highlight></codeline>
<codeline lineno="137"><highlight class="normal"></highlight></codeline>
<codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/></highlight></codeline>
<codeline lineno="139"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>we<sp/>found<sp/>the<sp/>node.<sp/>Move<sp/>it<sp/>to<sp/>the<sp/>front<sp/>of<sp/>the<sp/>list<sp/></highlight></codeline>
<codeline lineno="140"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*<sp/>(if<sp/>it<sp/>isn&apos;t<sp/>already)</highlight></codeline>
<codeline lineno="141"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="142"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>0</highlight></codeline>
<codeline lineno="143"><highlight class="preprocessor"></highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(tmp-&gt;<ref refid="structcacheNode_19703432cc616e60df366d82314ac655d" kindref="member">parent</ref>);</highlight></codeline>
<codeline lineno="144"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(tmp<sp/>!=<sp/>tmp-&gt;<ref refid="structcacheNode_19703432cc616e60df366d82314ac655d" kindref="member">parent</ref>-&gt;<ref refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" kindref="member">fileListHead</ref>)<sp/>{</highlight></codeline>
<codeline lineno="145"><highlight class="normal"></highlight></codeline>
<codeline lineno="146"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>if<sp/>we&apos;re<sp/>the<sp/>tail,<sp/>point<sp/>the<sp/>tail<sp/>to<sp/>our<sp/>prev<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="147"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(tmp<sp/>==<sp/>tmp-&gt;<ref refid="structcacheNode_19703432cc616e60df366d82314ac655d" kindref="member">parent</ref>-&gt;<ref refid="structcacheNode_1b464ff24189c8c4ceb4f5fdbbd7350fe" kindref="member">fileListTail</ref>)<sp/>{</highlight></codeline>
<codeline lineno="148"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_19703432cc616e60df366d82314ac655d" kindref="member">parent</ref>-&gt;<ref refid="structcacheNode_1b464ff24189c8c4ceb4f5fdbbd7350fe" kindref="member">fileListTail</ref><sp/>=<sp/>tmp-&gt;<ref refid="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" kindref="member">prev</ref>;</highlight></codeline>
<codeline lineno="149"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="comment">/*<sp/>if<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="150"><highlight class="normal"></highlight></codeline>
<codeline lineno="151"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(tmp-&gt;<ref refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" kindref="member">next</ref><sp/>!=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/>tmp-&gt;<ref refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" kindref="member">next</ref>-&gt;<ref refid="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" kindref="member">prev</ref><sp/>=<sp/>tmp-&gt;<ref refid="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" kindref="member">prev</ref>;</highlight></codeline>
<codeline lineno="152"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(tmp-&gt;<ref refid="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" kindref="member">prev</ref><sp/>!=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/>tmp-&gt;<ref refid="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" kindref="member">prev</ref>-&gt;<ref refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" kindref="member">next</ref><sp/>=<sp/>tmp-&gt;<ref refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" kindref="member">next</ref>;</highlight></codeline>
<codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" kindref="member">next</ref><sp/>=<sp/>tmp-&gt;<ref refid="structcacheNode_19703432cc616e60df366d82314ac655d" kindref="member">parent</ref>-&gt;<ref refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" kindref="member">fileListHead</ref>;</highlight></codeline>
<codeline lineno="154"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" kindref="member">prev</ref><sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="155"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_19703432cc616e60df366d82314ac655d" kindref="member">parent</ref>-&gt;<ref refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" kindref="member">fileListHead</ref><sp/>=<sp/>tmp;</highlight></codeline>
<codeline lineno="156"><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="157"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
<codeline lineno="158"><highlight class="preprocessor"></highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>tmp;</highlight></codeline>
<codeline lineno="159"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="comment">/*<sp/>if<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="160"><highlight class="normal"><sp/><sp/><sp/><sp/>tmp<sp/>=<sp/>tmp-&gt;<ref refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" kindref="member">next</ref>;</highlight></codeline>
<codeline lineno="161"><highlight class="normal"><sp/><sp/>}<sp/></highlight><highlight class="comment">/*<sp/>while<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="162"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>if<sp/>we&apos;re<sp/>here,<sp/>then<sp/>one<sp/>level<sp/>of<sp/>the<sp/>dir<sp/>isn&apos;t<sp/>cached<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="163"><highlight class="normal"></highlight></codeline>
<codeline lineno="164"><highlight class="normal"><sp/><sp/>tmp<sp/>=<sp/>head-&gt;<ref refid="structcacheNode_19703432cc616e60df366d82314ac655d" kindref="member">parent</ref>;</highlight></codeline>
<codeline lineno="165"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(tmp);</highlight></codeline>
<codeline lineno="166"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(tmp-&gt;<ref refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" kindref="member">info</ref>);</highlight></codeline>
<codeline lineno="167"><highlight class="normal"><sp/><sp/><ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref><sp/>=<sp/><ref refid="dirCache_8c_1ee88b75cf4360a46adb5021e358625d3" kindref="member">ubixfs_findName</ref>((</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdirectoryEntry" kindref="compound">directoryEntry</ref><sp/>*)tmp-&gt;<ref refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" kindref="member">info</ref>,<sp/></highlight></codeline>
<codeline lineno="168"><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/>*tmp-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref>,<sp/>name);</highlight></codeline>
<codeline lineno="169"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref><sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="170"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>kprintf(&quot;creating<sp/>new<sp/>node/size<sp/>%s/%d&quot;,<sp/>dirList-&gt;fileName,<sp/>dirList-&gt;size);*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="171"><highlight class="normal"><sp/><sp/>tmp<sp/>=<sp/><ref refid="dirCache_8h_142dd78873d67b29f68a271fc30a60bf4" kindref="member">ubixfs_cacheAdd</ref>(tmp,<sp/><ref refid="dirCache_8h_1adfffea5ad577cecdfbc4eb7989cf193" kindref="member">ubixfs_cacheNew</ref>(<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>-&gt;fileName));</highlight></codeline>
<codeline lineno="172"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_176defc9430363558ce5a96f72fa7b1d4" kindref="member">attributes</ref><sp/>=<sp/>&amp;<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>-&gt;attributes;</highlight></codeline>
<codeline lineno="173"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_11eccf5ffd0b1a3479e0e630373cff5af" kindref="member">permissions</ref><sp/>=<sp/>&amp;<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>-&gt;permissions;</highlight></codeline>
<codeline lineno="174"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref><sp/>=<sp/>&amp;<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>-&gt;size;</highlight></codeline>
<codeline lineno="175"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>kprintf(&quot;<sp/><sp/><sp/>size:<sp/>%d\n&quot;,<sp/>*tmp-&gt;size);<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="176"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_1a3fa99dfac99663d5448d74594120521" kindref="member">startCluster</ref><sp/>=<sp/>&amp;<ref refid="directory_8c_1c58a1f5b454f2ce5ce3619fd470583a2" kindref="member">dirList</ref>-&gt;startCluster;</highlight></codeline>
<codeline lineno="177"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_18b26b1b3dbe3f8cb72627e09e6c8e353" kindref="member">present</ref><sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="178"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>tmp;</highlight></codeline>
<codeline lineno="179"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>0</highlight></codeline>
<codeline lineno="180"><highlight class="preprocessor"></highlight><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;<sp/><sp/></highlight><highlight class="comment">/*<sp/>couldn&apos;t<sp/>find<sp/>it<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="181"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
<codeline lineno="182"><highlight class="preprocessor"></highlight><highlight class="normal">}<sp/></highlight><highlight class="comment">/*<sp/>ubixfs_cacheFind<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="183"><highlight class="normal"></highlight></codeline>
<codeline lineno="184"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*<sp/></highlight></codeline>
<codeline lineno="185" refid="dirCache_8c_1169a7d814e5ab80f123e5193a81b70b2" refkind="member"><highlight class="normal"><ref refid="dirCache_8h_1adfffea5ad577cecdfbc4eb7989cf193" kindref="member">ubixfs_cacheNew</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*<sp/><ref refid="pci_8c_18f8f80d37794cde9472343e4487ba3eb" kindref="member">name</ref>)<sp/>{</highlight></codeline>
<codeline lineno="186"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*<sp/>tmp<sp/>=<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="structcacheNode" kindref="compound">cacheNode</ref>));</highlight></codeline>
<codeline lineno="187"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(tmp);</highlight></codeline>
<codeline lineno="188"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_19703432cc616e60df366d82314ac655d" kindref="member">parent</ref><sp/>=<sp/>tmp;</highlight></codeline>
<codeline lineno="189"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" kindref="member">prev</ref><sp/>=<sp/>tmp-&gt;<ref refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" kindref="member">next</ref><sp/>=<sp/>tmp-&gt;<ref refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" kindref="member">fileListHead</ref><sp/>=<sp/>tmp-&gt;<ref refid="structcacheNode_1b464ff24189c8c4ceb4f5fdbbd7350fe" kindref="member">fileListTail</ref><sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="190"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" kindref="member">info</ref><sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="191"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_181d33d36c4163308906d9a48ea0f9eab" kindref="member">size</ref><sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="192"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_18b26b1b3dbe3f8cb72627e09e6c8e353" kindref="member">present</ref><sp/>=<sp/>tmp-&gt;<ref refid="structcacheNode_1eebb0a0956a22f5d0ff55223aa918c53" kindref="member">dirty</ref><sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="193"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_1a3fa99dfac99663d5448d74594120521" kindref="member">startCluster</ref><sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="194"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_176defc9430363558ce5a96f72fa7b1d4" kindref="member">attributes</ref><sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="195"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_11eccf5ffd0b1a3479e0e630373cff5af" kindref="member">permissions</ref><sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="196"><highlight class="normal"><sp/><sp/>tmp-&gt;<ref refid="structcacheNode_1c3e3d36eedc34c8662965776ff6ba421" kindref="member">name</ref><sp/>=<sp/>(</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(<ref refid="strlen_8S_10bcafbeba7f59f157715cc462036b8d3" kindref="member">strlen</ref>(name)+1);</highlight></codeline>
<codeline lineno="197"><highlight class="normal"><sp/><sp/><ref refid="strcpy_8S_19132520cc79236b654666f4ddc1b516c" kindref="member">strcpy</ref>(tmp-&gt;<ref refid="structcacheNode_1c3e3d36eedc34c8662965776ff6ba421" kindref="member">name</ref>,<sp/>name);</highlight></codeline>
<codeline lineno="198"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>tmp;</highlight></codeline>
<codeline lineno="199"><highlight class="normal">}<sp/></highlight><highlight class="comment">/*<sp/>ubixfs_cacheNew<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="200"><highlight class="normal"></highlight></codeline>
<codeline lineno="201"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="202" refid="dirCache_8c_1472e166c2202b92faa451f2ae9906882" refkind="member"><highlight class="normal"><ref refid="dirCache_8h_1a31fa0816ce9018ef327f17a48b36d3c" kindref="member">ubixfs_cacheDelete</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>**<sp/>head)<sp/>{</highlight></codeline>
<codeline lineno="203"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*<sp/>tmp<sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="204"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*<sp/>del<sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="205"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="206"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(head<sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="207"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(*head<sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="208"><highlight class="normal"></highlight></codeline>
<codeline lineno="209"><highlight class="normal"><sp/><sp/>tmp<sp/>=<sp/>*head;</highlight></codeline>
<codeline lineno="210"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(tmp<sp/>!=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/>{</highlight></codeline>
<codeline lineno="211"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>if<sp/>there<sp/>are<sp/>any<sp/>child<sp/>nodes,<sp/>delete<sp/>them<sp/>first<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="212"><highlight class="normal"></highlight></codeline>
<codeline lineno="213"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/></highlight></codeline>
<codeline lineno="214"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/>*<sp/>the<sp/>following<sp/>commented<sp/>out<sp/>``if&apos;&apos;<sp/>statement<sp/>is<sp/>redundant,<sp/>since<sp/>it<sp/></highlight></codeline>
<codeline lineno="215"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/>*<sp/>will<sp/>be<sp/>caught<sp/>with<sp/>the<sp/>above<sp/>checks</highlight></codeline>
<codeline lineno="216"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="217"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>if<sp/>(tmp-&gt;fileListHead<sp/>!=<sp/>NULL)<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="218"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="dirCache_8h_1a31fa0816ce9018ef327f17a48b36d3c" kindref="member">ubixfs_cacheDelete</ref>(&amp;tmp-&gt;<ref refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" kindref="member">fileListHead</ref>);</highlight></codeline>
<codeline lineno="219"><highlight class="normal"></highlight></codeline>
<codeline lineno="220"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kmalloc_8h_1aa9ed6886459604cf73ccdbf6410e487" kindref="member">kfree</ref>(tmp-&gt;<ref refid="structcacheNode_142813fa0cdcca6ca1e6772bd20a9c321" kindref="member">info</ref>);</highlight></codeline>
<codeline lineno="221"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kmalloc_8h_1aa9ed6886459604cf73ccdbf6410e487" kindref="member">kfree</ref>(tmp-&gt;<ref refid="structcacheNode_1c3e3d36eedc34c8662965776ff6ba421" kindref="member">name</ref>);</highlight></codeline>
<codeline lineno="222"><highlight class="normal"><sp/><sp/><sp/><sp/>del<sp/>=<sp/>tmp;</highlight></codeline>
<codeline lineno="223"><highlight class="normal"><sp/><sp/><sp/><sp/>tmp<sp/>=<sp/>tmp-&gt;<ref refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" kindref="member">next</ref>;</highlight></codeline>
<codeline lineno="224"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kmalloc_8h_1aa9ed6886459604cf73ccdbf6410e487" kindref="member">kfree</ref>(del);</highlight></codeline>
<codeline lineno="225"><highlight class="normal"><sp/><sp/>}<sp/></highlight><highlight class="comment">/*<sp/>while<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="226"><highlight class="normal"><sp/><sp/>*head<sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="227"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="228"><highlight class="normal">}<sp/></highlight><highlight class="comment">/*<sp/>deleteNode<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="229"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>0</highlight></codeline>
<codeline lineno="230"><highlight class="preprocessor"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="231"><highlight class="normal">addNode(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>**<sp/>node,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*<sp/>newNode)<sp/>{</highlight></codeline>
<codeline lineno="232"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(node<sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="233"><highlight class="normal"><sp/><sp/>newNode-&gt;<ref refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" kindref="member">next</ref><sp/>=<sp/>*node;</highlight></codeline>
<codeline lineno="234"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(*node<sp/>!=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/>(*node)-&gt;<ref refid="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" kindref="member">prev</ref><sp/>=<sp/>newNode;</highlight></codeline>
<codeline lineno="235"><highlight class="normal"><sp/><sp/>newNode-&gt;<ref refid="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" kindref="member">prev</ref><sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="236"><highlight class="normal"><sp/><sp/>*node<sp/>=<sp/>newNode;</highlight></codeline>
<codeline lineno="237"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="238"><highlight class="normal">}<sp/></highlight><highlight class="comment">/*<sp/>addNode<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="239"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
<codeline lineno="240"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="241"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*</highlight></codeline>
<codeline lineno="242" refid="dirCache_8c_17d1df32bd197ba6541d9d7d2b3ada512" refkind="member"><highlight class="normal"><ref refid="dirCache_8h_142dd78873d67b29f68a271fc30a60bf4" kindref="member">ubixfs_cacheAdd</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*node,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*<sp/>newNode)<sp/>{</highlight></codeline>
<codeline lineno="243"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structcacheNode" kindref="compound">cacheNode</ref><sp/>*<sp/>tmp;</highlight></codeline>
<codeline lineno="244"><highlight class="normal"><sp/></highlight></codeline>
<codeline lineno="245"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1d6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(node);</highlight></codeline>
<codeline lineno="246"><highlight class="normal"><sp/><sp/><ref refid="spinlock_8h_12cd9a4502680fb8e7f0fe6b029e558b1" kindref="member">spinLock</ref>(&amp;<ref refid="dirCache_8c_1980ccf1ee1ec5dbd904477a7f8c7877b" kindref="member">dca_spinLock</ref>);</highlight></codeline>
<codeline lineno="247"><highlight class="normal"><sp/><sp/>newNode-&gt;<ref refid="structcacheNode_19703432cc616e60df366d82314ac655d" kindref="member">parent</ref><sp/>=<sp/>node;</highlight></codeline>
<codeline lineno="248"><highlight class="normal"><sp/><sp/>newNode-&gt;<ref refid="structcacheNode_11802d3577a3722e29dd86b7849deb9dc" kindref="member">next</ref><sp/>=<sp/>node-&gt;<ref refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" kindref="member">fileListHead</ref>;</highlight></codeline>
<codeline lineno="249"><highlight class="normal"><sp/><sp/>newNode-&gt;<ref refid="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" kindref="member">prev</ref><sp/>=<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>;</highlight></codeline>
<codeline lineno="250"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(node-&gt;<ref refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" kindref="member">fileListHead</ref><sp/>==<sp/><ref refid="types_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" kindref="member">NULL</ref>)<sp/></highlight></codeline>
<codeline lineno="251"><highlight class="normal"><sp/><sp/><sp/><sp/>node-&gt;<ref refid="structcacheNode_1b464ff24189c8c4ceb4f5fdbbd7350fe" kindref="member">fileListTail</ref><sp/>=<sp/>newNode;</highlight></codeline>
<codeline lineno="252"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="253"><highlight class="normal"><sp/><sp/><sp/><sp/>node-&gt;<ref refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" kindref="member">fileListHead</ref>-&gt;<ref refid="structcacheNode_1ae98ea1e215590d9e68e41aba8669091" kindref="member">prev</ref><sp/>=<sp/>newNode;</highlight></codeline>
<codeline lineno="254"><highlight class="normal"></highlight></codeline>
<codeline lineno="255"><highlight class="normal"><sp/><sp/>node-&gt;<ref refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" kindref="member">fileListHead</ref><sp/>=<sp/>newNode;</highlight></codeline>
<codeline lineno="256"><highlight class="normal"><sp/><sp/>tmp<sp/>=<sp/>node-&gt;<ref refid="structcacheNode_1e4ca3c2c9603c1e1f56516598dea641a" kindref="member">fileListHead</ref>;</highlight></codeline>
<codeline lineno="257"><highlight class="normal"><sp/><sp/><ref refid="spinlock_8h_1dd996cbbb3b9826dd9c8cf02b66a4c65" kindref="member">spinUnlock</ref>(&amp;<ref refid="dirCache_8c_1980ccf1ee1ec5dbd904477a7f8c7877b" kindref="member">dca_spinLock</ref>);</highlight></codeline>
<codeline lineno="258"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>tmp;</highlight></codeline>
<codeline lineno="259"><highlight class="normal">}<sp/></highlight><highlight class="comment">/*<sp/>ubixfs_cacheAdd<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="260"><highlight class="normal"></highlight></codeline>
<codeline lineno="261"><highlight class="normal"></highlight><highlight class="comment">/***</highlight></codeline>
<codeline lineno="262"><highlight class="comment"><sp/>$Log: dirCache_8c.xml,v $
<codeline lineno="262"><highlight class="comment"><sp/>Revision 1.6  2006/12/19 14:12:51  reddawg
<codeline lineno="262"><highlight class="comment"><sp/>rtld-elf almost workign
<codeline lineno="262"><highlight class="comment"><sp/></highlight></codeline>
<codeline lineno="263"><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="264"><highlight class="comment"><sp/>ubix2</highlight></codeline>
<codeline lineno="265"><highlight class="comment"></highlight></codeline>
<codeline lineno="266"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2005/10/12<sp/>00:13:37<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="267"><highlight class="comment"><sp/>Removed</highlight></codeline>
<codeline lineno="268"><highlight class="comment"></highlight></codeline>
<codeline lineno="269"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2005/09/26<sp/>17:24:40<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="270"><highlight class="comment"><sp/>no<sp/>message</highlight></codeline>
<codeline lineno="271"><highlight class="comment"></highlight></codeline>
<codeline lineno="272"><highlight class="comment"><sp/>Revision<sp/>1.30<sp/><sp/>2004/08/14<sp/>11:23:02<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="273"><highlight class="comment"><sp/>Changes</highlight></codeline>
<codeline lineno="274"><highlight class="comment"></highlight></codeline>
<codeline lineno="275"><highlight class="comment"><sp/>Revision<sp/>1.29<sp/><sp/>2004/08/09<sp/>12:58:05<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="276"><highlight class="comment"><sp/>let<sp/>me<sp/>know<sp/>when<sp/>you<sp/>got<sp/>the<sp/>surce</highlight></codeline>
<codeline lineno="277"><highlight class="comment"></highlight></codeline>
<codeline lineno="278"><highlight class="comment"><sp/>Revision<sp/>1.28<sp/><sp/>2004/08/01<sp/>17:58:39<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="279"><highlight class="comment"><sp/>chg:<sp/>fixed<sp/>string<sp/>allocation<sp/>bug<sp/>in<sp/>ubixfs_cacheNew()</highlight></codeline>
<codeline lineno="280"><highlight class="comment"></highlight></codeline>
<codeline lineno="281"><highlight class="comment"><sp/>Revision<sp/>1.27<sp/><sp/>2004/07/28<sp/>17:24:13<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="282"><highlight class="comment"><sp/>chg:<sp/>no<sp/>comment</highlight></codeline>
<codeline lineno="283"><highlight class="comment"></highlight></codeline>
<codeline lineno="284"><highlight class="comment"><sp/>Revision<sp/>1.26<sp/><sp/>2004/07/28<sp/>17:07:29<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="285"><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="286"><highlight class="comment"><sp/>add:<sp/>added<sp/>an<sp/>assert()<sp/>in<sp/>ubixfs.c</highlight></codeline>
<codeline lineno="287"><highlight class="comment"></highlight></codeline>
<codeline lineno="288"><highlight class="comment"><sp/>Revision<sp/>1.25<sp/><sp/>2004/07/27<sp/>19:24:31<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="289"><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="290"><highlight class="comment"></highlight></codeline>
<codeline lineno="291"><highlight class="comment"><sp/>Revision<sp/>1.24<sp/><sp/>2004/07/27<sp/>12:02:01<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="292"><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="293"><highlight class="comment"></highlight></codeline>
<codeline lineno="294"><highlight class="comment"><sp/>Revision<sp/>1.23<sp/><sp/>2004/07/27<sp/>09:05:43<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="295"><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="296"><highlight class="comment"></highlight></codeline>
<codeline lineno="297"><highlight class="comment"><sp/>Revision<sp/>1.22<sp/><sp/>2004/07/27<sp/>04:05:20<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="298"><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="299"><highlight class="comment"></highlight></codeline>
<codeline lineno="300"><highlight class="comment"><sp/>Revision<sp/>1.21<sp/><sp/>2004/07/25<sp/>22:21:52<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="301"><highlight class="comment"><sp/>chg:<sp/>re-enabled<sp/>kprintf()<sp/>in<sp/>ubixfs_cacheFind()</highlight></codeline>
<codeline lineno="302"><highlight class="comment"></highlight></codeline>
<codeline lineno="303"><highlight class="comment"><sp/>Revision<sp/>1.20<sp/><sp/>2004/07/24<sp/>17:19:24<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="304"><highlight class="comment"><sp/>chg:<sp/>Temporarily<sp/>disabled<sp/>the<sp/>moving<sp/>of<sp/>the<sp/>found<sp/>cache<sp/>node<sp/>to<sp/>the<sp/>front</highlight></codeline>
<codeline lineno="305"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/>of<sp/>the<sp/>list.<sp/>It<sp/>seems<sp/>to<sp/>cause<sp/>problems<sp/>later<sp/>(race<sp/>condition,<sp/>possibly)</highlight></codeline>
<codeline lineno="306"><highlight class="comment"></highlight></codeline>
<codeline lineno="307"><highlight class="comment"><sp/>Revision<sp/>1.19<sp/><sp/>2004/07/22<sp/>23:01:51<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="308"><highlight class="comment"><sp/>Ok<sp/>checking<sp/>in<sp/>before<sp/>I<sp/>sleep</highlight></codeline>
<codeline lineno="309"><highlight class="comment"></highlight></codeline>
<codeline lineno="310"><highlight class="comment"><sp/>Revision<sp/>1.18<sp/><sp/>2004/07/22<sp/>19:54:50<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="311"><highlight class="comment"><sp/>chg:<sp/>works<sp/>now.<sp/>Thanx<sp/>ubu</highlight></codeline>
<codeline lineno="312"><highlight class="comment"></highlight></codeline>
<codeline lineno="313"><highlight class="comment"><sp/>Revision<sp/>1.17<sp/><sp/>2004/07/22<sp/>19:01:59<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="314"><highlight class="comment"><sp/>chg:<sp/>more<sp/>directory<sp/>and<sp/>file<sp/>caching</highlight></codeline>
<codeline lineno="315"><highlight class="comment"></highlight></codeline>
<codeline lineno="316"><highlight class="comment"><sp/>Revision<sp/>1.16<sp/><sp/>2004/07/22<sp/>16:34:32<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="317"><highlight class="comment"><sp/>add:<sp/>file<sp/>and<sp/>dir<sp/>caching<sp/>kinda<sp/>work</highlight></codeline>
<codeline lineno="318"><highlight class="comment"></highlight></codeline>
<codeline lineno="319"><highlight class="comment"><sp/>Revision<sp/>1.15<sp/><sp/>2004/07/21<sp/>22:43:18<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="320"><highlight class="comment"><sp/>one<sp/>more<sp/>try</highlight></codeline>
<codeline lineno="321"><highlight class="comment"></highlight></codeline>
<codeline lineno="322"><highlight class="comment"><sp/>Revision<sp/>1.14<sp/><sp/>2004/07/21<sp/>22:42:25<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="323"><highlight class="comment"><sp/>try<sp/>it<sp/>now</highlight></codeline>
<codeline lineno="324"><highlight class="comment"></highlight></codeline>
<codeline lineno="325"><highlight class="comment"><sp/>Revision<sp/>1.13<sp/><sp/>2004/07/21<sp/>22:40:27<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="326"><highlight class="comment"><sp/>weird</highlight></codeline>
<codeline lineno="327"><highlight class="comment"></highlight></codeline>
<codeline lineno="328"><highlight class="comment"><sp/>Revision<sp/>1.12<sp/><sp/>2004/07/21<sp/>22:18:37<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="329"><highlight class="comment"><sp/>chg:<sp/>renamed<sp/>subDirsHead/Tail<sp/>members<sp/>of<sp/>cacheNode<sp/>to<sp/>fileListHead/Tail</highlight></codeline>
<codeline lineno="330"><highlight class="comment"></highlight></codeline>
<codeline lineno="331"><highlight class="comment"><sp/>Revision<sp/>1.11<sp/><sp/>2004/07/21<sp/>22:12:22<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="332"><highlight class="comment"><sp/>add:<sp/>attributes<sp/>tag<sp/>in<sp/>cacheNode</highlight></codeline>
<codeline lineno="333"><highlight class="comment"><sp/>add:<sp/>setting<sp/>of<sp/>attributes<sp/>in<sp/>ubixfx_cacheNew()<sp/>and<sp/>ubixfs_cacheFind()</highlight></codeline>
<codeline lineno="334"><highlight class="comment"></highlight></codeline>
<codeline lineno="335"><highlight class="comment"><sp/>Revision<sp/>1.10<sp/><sp/>2004/07/21<sp/>22:07:18<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="336"><highlight class="comment"><sp/>chg:<sp/>renamed<sp/>caching<sp/>functions<sp/>(again)</highlight></codeline>
<codeline lineno="337"><highlight class="comment"></highlight></codeline>
<codeline lineno="338"><highlight class="comment"><sp/>Revision<sp/>1.9<sp/><sp/>2004/07/21<sp/>22:00:04<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="339"><highlight class="comment"><sp/>chg:<sp/>ubixfws_dirCacheAdd<sp/>now<sp/>returns<sp/>a<sp/>pointer<sp/>to<sp/>the<sp/>node<sp/>it<sp/>added</highlight></codeline>
<codeline lineno="340"><highlight class="comment"><sp/>chg:<sp/>minor<sp/>fix<sp/>in<sp/>ubixfs_dirCacheFind()</highlight></codeline>
<codeline lineno="341"><highlight class="comment"></highlight></codeline>
<codeline lineno="342"><highlight class="comment"><sp/>Revision<sp/>1.6<sp/><sp/>2004/07/21<sp/>14:43:14<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="343"><highlight class="comment"><sp/>add:<sp/>added<sp/>cwc<sp/>(current<sp/>working<sp/>container)<sp/>to<sp/>the<sp/>osInfo<sp/>strut</highlight></codeline>
<codeline lineno="344"><highlight class="comment"></highlight></codeline>
<codeline lineno="345"><highlight class="comment"><sp/>Revision<sp/>1.5<sp/><sp/>2004/07/20<sp/>19:21:30<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="346"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>$Log: dirCache_8c.xml,v $
<codeline lineno="346"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision 1.6  2006/12/19 14:12:51  reddawg
<codeline lineno="346"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>rtld-elf almost workign
<codeline lineno="346"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/></highlight></codeline>
<codeline lineno="347"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.1.1.1<sp/><sp/>2006/06/01<sp/>12:46:17<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="348"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>ubix2</highlight></codeline>
<codeline lineno="349"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="350"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.2<sp/><sp/>2005/10/12<sp/>00:13:37<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="351"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Removed</highlight></codeline>
<codeline lineno="352"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="353"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.1.1.1<sp/><sp/>2005/09/26<sp/>17:24:40<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="354"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>no<sp/>message</highlight></codeline>
<codeline lineno="355"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="356"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.30<sp/><sp/>2004/08/14<sp/>11:23:02<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="357"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Changes</highlight></codeline>
<codeline lineno="358"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="359"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.29<sp/><sp/>2004/08/09<sp/>12:58:05<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="360"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>let<sp/>me<sp/>know<sp/>when<sp/>you<sp/>got<sp/>the<sp/>surce</highlight></codeline>
<codeline lineno="361"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="362"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.28<sp/><sp/>2004/08/01<sp/>17:58:39<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="363"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>chg:<sp/>fixed<sp/>string<sp/>allocation<sp/>bug<sp/>in<sp/>ubixfs_cacheNew()</highlight></codeline>
<codeline lineno="364"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="365"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.27<sp/><sp/>2004/07/28<sp/>17:24:13<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="366"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>chg:<sp/>no<sp/>comment</highlight></codeline>
<codeline lineno="367"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="368"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.26<sp/><sp/>2004/07/28<sp/>17:07:29<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="369"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<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="370"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>add:<sp/>added<sp/>an<sp/>assert()<sp/>in<sp/>ubixfs.c</highlight></codeline>
<codeline lineno="371"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="372"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.25<sp/><sp/>2004/07/27<sp/>19:24:31<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="373"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>chg:<sp/>reduced<sp/>the<sp/>number<sp/>of<sp/>debugging<sp/>statements<sp/>in<sp/>the<sp/>kernel.</highlight></codeline>
<codeline lineno="374"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="375"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.24<sp/><sp/>2004/07/27<sp/>12:02:01<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="376"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<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="377"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="378"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.23<sp/><sp/>2004/07/27<sp/>09:05:43<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="379"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<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="380"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="381"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.22<sp/><sp/>2004/07/27<sp/>04:05:20<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="382"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>chg:<sp/>kinda<sp/>fixed<sp/>it.<sp/>Added<sp/>bunches<sp/>of<sp/>debug<sp/>info</highlight></codeline>
<codeline lineno="383"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="384"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.21<sp/><sp/>2004/07/25<sp/>22:21:52<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="385"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>chg:<sp/>re-enabled<sp/>kprintf()<sp/>in<sp/>ubixfs_cacheFind()</highlight></codeline>
<codeline lineno="386"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="387"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.20<sp/><sp/>2004/07/24<sp/>17:19:24<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="388"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>chg:<sp/>Temporarily<sp/>disabled<sp/>the<sp/>moving<sp/>of<sp/>the<sp/>found<sp/>cache<sp/>node<sp/>to<sp/>the<sp/>front</highlight></codeline>
<codeline lineno="389"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/><sp/><sp/><sp/><sp/><sp/>of<sp/>the<sp/>list.<sp/>It<sp/>seems<sp/>to<sp/>cause<sp/>problems<sp/>later<sp/>(race<sp/>condition,<sp/>possibly)</highlight></codeline>
<codeline lineno="390"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="391"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.19<sp/><sp/>2004/07/22<sp/>23:01:51<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="392"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Ok<sp/>checking<sp/>in<sp/>before<sp/>I<sp/>sleep</highlight></codeline>
<codeline lineno="393"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="394"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.18<sp/><sp/>2004/07/22<sp/>19:54:50<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="395"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>chg:<sp/>works<sp/>now.<sp/>Thanx<sp/>ubu</highlight></codeline>
<codeline lineno="396"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="397"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.17<sp/><sp/>2004/07/22<sp/>19:01:59<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="398"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>chg:<sp/>more<sp/>directory<sp/>and<sp/>file<sp/>caching</highlight></codeline>
<codeline lineno="399"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="400"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.16<sp/><sp/>2004/07/22<sp/>16:34:32<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="401"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>add:<sp/>file<sp/>and<sp/>dir<sp/>caching<sp/>kinda<sp/>work</highlight></codeline>
<codeline lineno="402"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="403"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.15<sp/><sp/>2004/07/21<sp/>22:43:18<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="404"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>one<sp/>more<sp/>try</highlight></codeline>
<codeline lineno="405"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="406"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.14<sp/><sp/>2004/07/21<sp/>22:42:25<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="407"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>try<sp/>it<sp/>now</highlight></codeline>
<codeline lineno="408"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="409"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.13<sp/><sp/>2004/07/21<sp/>22:40:27<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="410"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>weird</highlight></codeline>
<codeline lineno="411"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="412"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.12<sp/><sp/>2004/07/21<sp/>22:18:37<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="413"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>chg:<sp/>renamed<sp/>subDirsHead/Tail<sp/>members<sp/>of<sp/>cacheNode<sp/>to<sp/>fileListHead/Tail</highlight></codeline>
<codeline lineno="414"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="415"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.11<sp/><sp/>2004/07/21<sp/>22:12:22<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="416"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>add:<sp/>attributes<sp/>tag<sp/>in<sp/>cacheNode</highlight></codeline>
<codeline lineno="417"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>add:<sp/>setting<sp/>of<sp/>attributes<sp/>in<sp/>ubixfx_cacheNew()<sp/>and<sp/>ubixfs_cacheFind()</highlight></codeline>
<codeline lineno="418"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="419"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.10<sp/><sp/>2004/07/21<sp/>22:07:18<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="420"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>chg:<sp/>renamed<sp/>caching<sp/>functions<sp/>(again)</highlight></codeline>
<codeline lineno="421"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="422"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.9<sp/><sp/>2004/07/21<sp/>22:00:04<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="423"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>chg:<sp/>ubixfws_dirCacheAdd<sp/>now<sp/>returns<sp/>a<sp/>pointer<sp/>to<sp/>the<sp/>node<sp/>it<sp/>added</highlight></codeline>
<codeline lineno="424"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>chg:<sp/>minor<sp/>fix<sp/>in<sp/>ubixfs_dirCacheFind()</highlight></codeline>
<codeline lineno="425"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out</highlight></codeline>
<codeline lineno="426"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>Revision<sp/>1.6<sp/><sp/>2004/07/21<sp/>14:43:14<sp/><sp/>flameshadow</highlight></codeline>
<codeline lineno="427"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>add:<sp/>added<sp/>cwc<sp/>(current<sp/>working<sp/>container)<sp/>to<sp/>the<sp/>osInfo<sp/>strut</highlight></codeline>
<codeline lineno="428"><highlight class="comment"><sp/>You<sp/>like<sp/>leaving<sp/>out<sp/>so<sp/>i<sp/>don&apos;t<sp/>know<sp/>what<sp/>is<sp/>going<sp/>on<sp/>eh?</highlight></codeline>
<codeline lineno="429"><highlight class="comment"></highlight></codeline>
<codeline lineno="430"><highlight class="comment"><sp/>END</highlight></codeline>
<codeline lineno="431"><highlight class="comment"><sp/>***/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="432"><highlight class="normal"><sp/></highlight></codeline>
<codeline lineno="433"><highlight class="normal"></highlight></codeline>
    </programlisting>
    <location file="/usr/home/reddawg/source/ubix2/src/sys/ubixfs/dirCache.c"/>
  </compounddef>
</doxygen>
