<?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="ffs_8c" kind="file">
<compoundname>ffs.c</compoundname>
<includes refid="vfs_8h" local="no">vfs/vfs.h</includes>
<includes refid="ufs_8h" local="no">ufs/ufs.h</includes>
<includes refid="ffs_8h" local="no">ufs/ffs.h</includes>
<includes refid="kprintf_8h" local="no">lib/kprintf.h</includes>
<includes refid="kmalloc_8h" local="no">lib/kmalloc.h</includes>
<includes refid="kpanic_8h" local="no">ubixos/kpanic.h</includes>
<includes refid="lib_2string_8h" local="no">lib/string.h</includes>
<includes refid="buf_8h" local="no">sys/buf.h</includes>
<incdepgraph>
<node id="5998">
<label>src/sys/ufs/ffs.c</label>
<link refid="ffs.c"/>
<childnode refid="5999" relation="include">
</childnode>
<childnode refid="6008" relation="include">
</childnode>
<childnode refid="6010" relation="include">
</childnode>
<childnode refid="6011" relation="include">
</childnode>
<childnode refid="6012" relation="include">
</childnode>
<childnode refid="6013" relation="include">
</childnode>
<childnode refid="6014" relation="include">
</childnode>
<childnode refid="6015" relation="include">
</childnode>
</node>
<node id="6008">
<label>ufs/ufs.h</label>
<link refid="ufs_8h"/>
<childnode refid="6000" relation="include">
</childnode>
<childnode refid="5999" relation="include">
</childnode>
<childnode refid="6009" relation="include">
</childnode>
</node>
<node id="6007">
<label>sys/thread.h</label>
<link refid="thread_8h"/>
<childnode refid="6000" relation="include">
</childnode>
</node>
<node id="6013">
<label>ubixos/kpanic.h</label>
<link refid="kpanic_8h"/>
</node>
<node id="6010">
<label>ufs/ffs.h</label>
<link refid="ffs_8h"/>
<childnode refid="6000" relation="include">
</childnode>
<childnode refid="5999" relation="include">
</childnode>
<childnode refid="6009" relation="include">
</childnode>
</node>
<node id="6000">
<label>ubixos/types.h</label>
<link refid="types_8h"/>
<childnode refid="6001" relation="include">
</childnode>
</node>
<node id="6001">
<label>sys/_types.h</label>
<link refid="__types_8h"/>
</node>
<node id="6014">
<label>lib/string.h</label>
<link refid="lib_2string_8h"/>
<childnode refid="6000" relation="include">
</childnode>
</node>
<node id="6002">
<label>vfs/file.h</label>
<link refid="file_8h"/>
<childnode refid="6000" relation="include">
</childnode>
<childnode refid="6003" relation="include">
</childnode>
<childnode refid="6004" relation="include">
</childnode>
</node>
<node id="6012">
<label>lib/kmalloc.h</label>
<link refid="kmalloc_8h"/>
<childnode refid="6000" relation="include">
</childnode>
</node>
<node id="5999">
<label>vfs/vfs.h</label>
<link refid="vfs_8h"/>
<childnode refid="6000" relation="include">
</childnode>
<childnode refid="6002" relation="include">
</childnode>
<childnode refid="6004" relation="include">
</childnode>
<childnode refid="6005" relation="include">
</childnode>
<childnode refid="6007" relation="include">
</childnode>
</node>
<node id="6004">
<label>vfs/mount.h</label>
<link refid="mount_8h"/>
<childnode refid="6000" relation="include">
</childnode>
</node>
<node id="6011">
<label>lib/kprintf.h</label>
<link refid="kprintf_8h"/>
<childnode refid="6000" relation="include">
</childnode>
</node>
<node id="6003">
<label>ubixfs/dirCache.h</label>
<link refid="dirCache_8h"/>
<childnode refid="6000" relation="include">
</childnode>
</node>
<node id="6005">
<label>sys/sysproto.h</label>
<link refid="sysproto_8h"/>
<childnode refid="6006" relation="include">
</childnode>
<childnode refid="6007" relation="include">
</childnode>
</node>
<node id="6006">
<label>sys/signal.h</label>
<link refid="signal_8h"/>
<childnode refid="6000" relation="include">
</childnode>
</node>
<node id="6015">
<label>sys/buf.h</label>
<link refid="buf_8h"/>
<childnode refid="6000" relation="include">
</childnode>
<childnode refid="5999" relation="include">
</childnode>
<childnode refid="6009" relation="include">
</childnode>
</node>
<node id="6009">
<label>sys/device.h</label>
<link refid="device_8h"/>
<childnode refid="6000" relation="include">
</childnode>
</node>
</incdepgraph>
<sectiondef kind="func">
<memberdef kind="function" id="ffs_8c_1ac9a795f42d582183e06192277305e47" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
<type>int</type>
<definition>int ffs_read</definition>
<argsstring>(fileDescriptor *fd, char *data, uInt32 offset, long size)</argsstring>
<name>ffs_read</name>
<param>
<type><ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref> *</type>
<declname>fd</declname>
</param>
<param>
<type>char *</type>
<declname>data</declname>
</param>
<param>
<type><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref></type>
<declname>offset</declname>
</param>
<param>
<type>long</type>
<declname>size</declname>
</param>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location file="/usr/home/reddawg/source/ubix2/src/sys/ufs/ffs.c" line="11" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/ufs/ffs.c" bodystart="11" bodyend="23"/>
<references refid="structfileDescriptorStruct_162c52d66a6baff1f91fec689b624e3b3" compoundref="file_8h" startline="61">fileDescriptorStruct::dmadat</references>
<references refid="structfs_180705fcf0b5478639af84da1d4c24e72" compoundref="ufs_8h" startline="281">fs::fs_maxfilesize</references>
<references refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" compoundref="kprintf_8c" startline="38" endline="49">kprintf</references>
<references refid="structdmadat_1b267db93faadfbb8c65f16ca4df76055" compoundref="file_8h" startline="42">dmadat::sbbuf</references>
</memberdef>
</sectiondef>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<programlisting>
<codeline lineno="1"><highlight class="preprocessor">#include<sp/><<ref refid="vfs_8h" kindref="compound">vfs/vfs.h</ref>></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="ufs_8h" kindref="compound">ufs/ufs.h</ref>></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="3"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="ffs_8h" kindref="compound">ufs/ffs.h</ref>></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="4"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="kprintf_8h" kindref="compound">lib/kprintf.h</ref>></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="5"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="kmalloc_8h" kindref="compound">lib/kmalloc.h</ref>></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="6"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="kpanic_8h" kindref="compound">ubixos/kpanic.h</ref>></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="7"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="lib_2string_8h" kindref="compound">lib/string.h</ref>></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="8"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="buf_8h" kindref="compound">sys/buf.h</ref>></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="9"><highlight class="normal"></highlight></codeline>
<codeline lineno="10"><highlight class="normal"></highlight></codeline>
<codeline lineno="11" refid="ffs_8c_1ac9a795f42d582183e06192277305e47" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ffs_8h_100c764195a3019a9189596bd381ce62e" kindref="member">ffs_read</ref>(<ref refid="structfileDescriptorStruct" kindref="compound">fileDescriptor</ref><sp/>*fd,</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*data,<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>offset,</highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>size)<sp/>{</highlight></codeline>
<codeline lineno="12"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structfs" kindref="compound">fs</ref><sp/><sp/>*<ref refid="structfs" kindref="compound">fs</ref>;</highlight></codeline>
<codeline lineno="13"><highlight class="normal"></highlight></codeline>
<codeline lineno="14"><highlight class="normal"><sp/><sp/>fs<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">fs<sp/>*)fd-><ref refid="structfileDescriptorStruct_162c52d66a6baff1f91fec689b624e3b3" kindref="member">dmadat</ref>-><ref refid="structdmadat_1b267db93faadfbb8c65f16ca4df76055" kindref="member">sbbuf</ref>;</highlight></codeline>
<codeline lineno="15"><highlight class="normal"></highlight></codeline>
<codeline lineno="16"><highlight class="normal"><sp/><sp/>if<sp/>(offset<sp/><<sp/>fd->size<sp/>&&<sp/>offset<sp/>>=<sp/>fs-><ref refid="structfs_180705fcf0b5478639af84da1d4c24e72" kindref="member">fs_maxfilesize</ref>)<sp/>{</highlight></codeline>
<codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//return<sp/>(EOVERFLOW);</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(-1);</highlight></codeline>
<codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="20"><highlight class="normal"></highlight></codeline>
<codeline lineno="21"><highlight class="normal"><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Reading<sp/>File<sp/>w/<sp/>New<sp/>Function<sp/>[0x%X]\n"</highlight><highlight class="normal">,fs-><ref refid="structfs_180705fcf0b5478639af84da1d4c24e72" kindref="member">fs_maxfilesize</ref>);</highlight></codeline>
<codeline lineno="22"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline>
<codeline lineno="23"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
</programlisting>
<location file="/usr/home/reddawg/source/ubix2/src/sys/ufs/ffs.c"/>
</compounddef>
</doxygen>