Newer
Older
ubixos / doc / html / de / df2 / ffs_8c.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UbixOS: fs/ufs/ffs.c File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">UbixOS
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('de/df2/ffs_8c.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ffs.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="../../db/da9/include_2vfs_2vfs_8h_source.html">vfs/vfs.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../df/d42/ufs_8h_source.html">ufs/ufs.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../d0/dda/ffs_8h_source.html">ufs/ffs.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../da/d28/kprintf_8h_source.html">lib/kprintf.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../d4/d03/kmalloc_8h_source.html">lib/kmalloc.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../d3/d24/kpanic_8h_source.html">ubixos/kpanic.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../da/d66/string_8h_source.html">string.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../d6/d6d/buf_8h_source.html">sys/buf.h</a>&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for ffs.c:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/d95/ffs_8c__incl.png" border="0" usemap="#fs_2ufs_2ffs_8c" alt=""/></div>
<map name="fs_2ufs_2ffs_8c" id="fs_2ufs_2ffs_8c">
<area shape="rect" title=" " alt="" coords="1245,5,1326,32"/>
<area shape="rect" href="../../db/da9/include_2vfs_2vfs_8h.html" title=" " alt="" coords="434,155,500,181"/>
<area shape="rect" href="../../df/d42/ufs_8h.html" title=" " alt="" coords="860,827,930,853"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="2170,901,2255,928"/>
<area shape="rect" href="../../d3/d24/kpanic_8h.html" title=" " alt="" coords="926,901,1040,928"/>
<area shape="rect" href="../../d0/dda/ffs_8h.html" title=" " alt="" coords="1552,80,1619,107"/>
<area shape="rect" href="../../d4/d03/kmalloc_8h.html" title=" " alt="" coords="1973,155,2068,181"/>
<area shape="rect" href="../../da/d66/string_8h.html" title=" " alt="" coords="2073,827,2138,853"/>
<area shape="rect" href="../../d6/d6d/buf_8h.html" title=" " alt="" coords="575,80,650,107"/>
<area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="938,976,1028,1003"/>
<area shape="rect" href="../../d6/db4/include_2vfs_2file_8h.html" title=" " alt="" coords="402,677,470,704"/>
<area shape="rect" href="../../db/dd5/thread_8h.html" title=" " alt="" coords="221,752,316,779"/>
<area shape="rect" href="../../d1/df2/wait_8h.html" title=" " alt="" coords="686,827,784,853"/>
<area shape="rect" href="../../d2/d29/mount_8h.html" title=" " alt="" coords="58,752,146,779"/>
<area shape="rect" href="../../d3/d7e/sysproto__posix_8h.html" title=" " alt="" coords="180,603,327,629"/>
<area shape="rect" href="../../d7/d97/net_8h.html" title=" " alt="" coords="1036,229,1109,256"/>
<area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="732,1200,829,1227"/>
<area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="735,1051,828,1077"/>
<area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="552,1125,641,1152"/>
<area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="409,1125,528,1152"/>
<area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="665,1125,770,1152"/>
<area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="794,1125,894,1152"/>
<area shape="rect" href="../../d1/de9/dirCache_8h.html" title=" " alt="" coords="502,752,624,779"/>
<area shape="rect" href="../../d3/d73/inode_8h.html" title=" " alt="" coords="395,752,478,779"/>
<area shape="rect" href="../../d7/d0b/trap_8h.html" title=" " alt="" coords="190,827,270,853"/>
<area shape="rect" href="../../df/d92/sys_2signal_8h.html" title=" " alt="" coords="22,827,114,853"/>
<area shape="rect" href="../../d8/d01/resource_8h.html" title=" " alt="" coords="76,1051,184,1077"/>
<area shape="rect" href="../../d6/d35/i386_2cpu_8h.html" title=" " alt="" coords="187,901,270,928"/>
<area shape="rect" href="../../d1/d7d/pipe__fs_8h.html" title=" " alt="" coords="446,827,534,853"/>
<area shape="rect" href="../../d8/dff/msdos__fs_8h.html" title=" " alt="" coords="558,827,661,853"/>
<area shape="rect" href="../../d4/d7e/include_2sys_2device_8h.html" title=" " alt="" coords="1802,901,1897,928"/>
<area shape="rect" href="../../d9/d69/netif_8h.html" title=" " alt="" coords="1033,304,1112,331"/>
<area shape="rect" href="../../dc/dba/opt_8h.html" title=" " alt="" coords="1145,677,1218,704"/>
<area shape="rect" href="../../d6/d40/err_8h.html" title=" " alt="" coords="1037,603,1108,629"/>
<area shape="rect" href="../../de/df7/ip__addr_8h.html" title=" " alt="" coords="858,453,956,480"/>
<area shape="rect" href="../../d4/da4/def_8h.html" title=" " alt="" coords="754,603,826,629"/>
<area shape="rect" href="../../d0/d35/pbuf_8h.html" title=" " alt="" coords="1085,528,1164,555"/>
<area shape="rect" href="../../d9/d9b/stats_8h.html" title=" " alt="" coords="1210,379,1294,405"/>
<area shape="rect" href="../../d2/d78/lwipopts_8h.html" title=" " alt="" coords="1108,752,1210,779"/>
<area shape="rect" href="../../db/d16/debug_8h.html" title=" " alt="" coords="1235,752,1326,779"/>
<area shape="rect" href="../../d2/d2d/arch_8h.html" title=" " alt="" coords="1038,827,1118,853"/>
<area shape="rect" href="../../dc/df0/cc_8h.html" title=" " alt="" coords="1115,901,1214,928"/>
<area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="2178,976,2247,1003"/>
<area shape="rect" href="../../d1/da8/ip4__addr_8h.html" title=" " alt="" coords="727,528,831,555"/>
<area shape="rect" href="../../d3/d7d/ip6__addr_8h.html" title=" " alt="" coords="855,528,959,555"/>
<area shape="rect" href="../../d9/d9a/mem_8h.html" title=" " alt="" coords="1240,603,1324,629"/>
<area shape="rect" href="../../df/dff/memp_8h.html" title=" " alt="" coords="1314,453,1404,480"/>
<area shape="rect" href="../../d6/d7f/memp__std_8h.html" title=" " alt="" coords="1290,528,1428,555"/>
<area shape="rect" href="../../d5/d70/memp__priv_8h.html" title=" " alt="" coords="1453,528,1593,555"/>
<area shape="rect" href="../../d6/d90/strings_8h.html" title=" " alt="" coords="2074,901,2146,928"/>
</map>
</div>
</div>
<p><a href="../../de/df2/ffs_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae0611a10bf50ddb7c1ab4ce652c09307"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/df2/ffs_8c.html#ae0611a10bf50ddb7c1ab4ce652c09307">ffs_read</a> (<a class="el" href="../../d6/db4/include_2vfs_2file_8h.html#acc7b57f2d3766b4977ebbe64aa38608b">fileDescriptor_t</a> *fd, char *data, <a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> offset, long size)</td></tr>
<tr class="separator:ae0611a10bf50ddb7c1ab4ce652c09307"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ae0611a10bf50ddb7c1ab4ce652c09307"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0611a10bf50ddb7c1ab4ce652c09307">&#9670;&nbsp;</a></span>ffs_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ffs_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d6/db4/include_2vfs_2file_8h.html#acc7b57f2d3766b4977ebbe64aa38608b">fileDescriptor_t</a> *&#160;</td>
          <td class="paramname"><em>fd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a>&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../de/df2/ffs_8c_source.html#l00011">11</a> of file <a class="el" href="../../de/df2/ffs_8c_source.html">ffs.c</a>.</p>

<p class="reference">References <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00077">fileDescriptor::dmadat</a>, <a class="el" href="../../dc/d5b/ufs_2ffs_2fs_8h_source.html#l00357">fs::fs_maxfilesize</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, and <a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html#l00058">dmadat::sbbuf</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/df2/ffs_8c_ae0611a10bf50ddb7c1ab4ce652c09307_cgraph.png" border="0" usemap="#de/df2/ffs_8c_ae0611a10bf50ddb7c1ab4ce652c09307_cgraph" alt=""/></div>
<map name="de/df2/ffs_8c_ae0611a10bf50ddb7c1ab4ce652c09307_cgraph" id="de/df2/ffs_8c_ae0611a10bf50ddb7c1ab4ce652c09307_cgraph">
<area shape="rect" title=" " alt="" coords="5,132,72,159"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="120,132,177,159"/>
<area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="231,81,286,108"/>
<area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="227,132,290,159"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="225,183,292,209"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="344,5,425,32"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="340,56,429,83"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="353,107,417,133"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="350,157,419,184"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="477,157,552,184"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="601,132,691,159"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="600,183,692,209"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_97b3d2b63ac216821c2d7a22ee0ab2b0.html">fs</a></li><li class="navelem"><a class="el" href="../../dir_475b8689aebcfe64e0e48321718c10e0.html">ufs</a></li><li class="navelem"><a class="el" href="../../de/df2/ffs_8c.html">ffs.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>