<?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="include_2vfs_2vfs_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="4588"> <label>src/sys/ufs/ffs.c</label> <link refid="ffs.c"/> <childnode refid="4589" relation="include"> </childnode> <childnode refid="4598" relation="include"> </childnode> <childnode refid="4600" relation="include"> </childnode> <childnode refid="4601" relation="include"> </childnode> <childnode refid="4602" relation="include"> </childnode> <childnode refid="4603" relation="include"> </childnode> <childnode refid="4604" relation="include"> </childnode> <childnode refid="4605" relation="include"> </childnode> </node> <node id="4598"> <label>ufs/ufs.h</label> <link refid="ufs_8h"/> <childnode refid="4590" relation="include"> </childnode> <childnode refid="4589" relation="include"> </childnode> <childnode refid="4599" relation="include"> </childnode> </node> <node id="4597"> <label>sys/thread.h</label> <link refid="thread_8h"/> <childnode refid="4590" relation="include"> </childnode> </node> <node id="4603"> <label>ubixos/kpanic.h</label> <link refid="kpanic_8h"/> </node> <node id="4600"> <label>ufs/ffs.h</label> <link refid="ffs_8h"/> <childnode refid="4590" relation="include"> </childnode> <childnode refid="4589" relation="include"> </childnode> <childnode refid="4599" relation="include"> </childnode> </node> <node id="4590"> <label>ubixos/types.h</label> <link refid="include_2ubixos_2types_8h"/> <childnode refid="4591" relation="include"> </childnode> </node> <node id="4591"> <label>sys/_types.h</label> <link refid="__types_8h"/> </node> <node id="4604"> <label>lib/string.h</label> <link refid="lib_2string_8h"/> <childnode refid="4590" relation="include"> </childnode> </node> <node id="4592"> <label>vfs/file.h</label> <link refid="include_2vfs_2file_8h"/> <childnode refid="4590" relation="include"> </childnode> <childnode refid="4593" relation="include"> </childnode> <childnode refid="4594" relation="include"> </childnode> </node> <node id="4602"> <label>lib/kmalloc.h</label> <link refid="kmalloc_8h"/> <childnode refid="4590" relation="include"> </childnode> </node> <node id="4589"> <label>vfs/vfs.h</label> <link refid="include_2vfs_2vfs_8h"/> <childnode refid="4590" relation="include"> </childnode> <childnode refid="4592" relation="include"> </childnode> <childnode refid="4594" relation="include"> </childnode> <childnode refid="4595" relation="include"> </childnode> <childnode refid="4597" relation="include"> </childnode> </node> <node id="4594"> <label>vfs/mount.h</label> <link refid="mount_8h"/> <childnode refid="4590" relation="include"> </childnode> <childnode refid="4589" relation="include"> </childnode> </node> <node id="4601"> <label>lib/kprintf.h</label> <link refid="kprintf_8h"/> <childnode refid="4590" relation="include"> </childnode> </node> <node id="4593"> <label>ubixfs/dirCache.h</label> <link refid="dirCache_8h"/> <childnode refid="4590" relation="include"> </childnode> </node> <node id="4595"> <label>sys/sysproto.h</label> <link refid="sysproto_8h"/> <childnode refid="4596" relation="include"> </childnode> </node> <node id="4596"> <label>sys/signal.h</label> <link refid="signal_8h"/> <childnode refid="4590" relation="include"> </childnode> </node> <node id="4605"> <label>sys/buf.h</label> <link refid="buf_8h"/> <childnode refid="4590" relation="include"> </childnode> <childnode refid="4589" relation="include"> </childnode> <childnode refid="4599" relation="include"> </childnode> </node> <node id="4599"> <label>sys/device.h</label> <link refid="include_2sys_2device_8h"/> <childnode refid="4590" 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="structfileDescriptor" kindref="compound">fileDescriptor</ref> *</type> <declname>fd</declname> </param> <param> <type>char *</type> <declname>data</declname> </param> <param> <type><ref refid="ubixfsv2_2types_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="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> </memberdef> </sectiondef> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <programlisting> <codeline lineno="1"><highlight class="preprocessor">#include<sp/><<ref refid="include_2vfs_2vfs_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="structfileDescriptor" kindref="compound">fileDescriptor</ref><sp/>*fd,</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*data,<ref refid="include_2ubixos_2types_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->dmadat->sbbuf;</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>