Newer
Older
UbixOS / doc / html / block_8c.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>UbixOS V2: src/sys/ubixfs/block.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="dir_897b6a2d7bab147dd1db58381aad3984.html">src</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_832905b1f7f5feaf61a306b40c0ac817.html">sys</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_74196872fc832845f1a07f1162e5c554.html">ubixfs</a></div>
<h1>block.c File Reference</h1><code>#include &lt;<a class="el" href="ubixfs_8h-source.html">ubixfs/ubixfs.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="file_8h-source.html">vfs/file.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="mount_8h-source.html">vfs/mount.h</a>&gt;</code><br>

<p>
Include dependency graph for block.c:<p><center><img src="block_8c__incl.png" border="0" usemap="#src/sys/ubixfs/block.c_map" alt=""></center>
<map name="src/sys/ubixfs/block.c_map">
<area href="ubixfs_8h.html" shape="rect" coords="220,132,340,159" alt="">
<area href="file_8h.html" shape="rect" coords="541,259,621,285" alt="">
<area href="mount_8h.html" shape="rect" coords="703,309,804,336" alt="">
<area href="types_8h.html" shape="rect" coords="873,157,993,184" alt="">
<area href="vfs_8h.html" shape="rect" coords="396,208,473,235" alt="">
<area href="dirCache_8h.html" shape="rect" coords="684,157,823,184" alt="">
<area href="device_8h.html" shape="rect" coords="528,5,635,32" alt="">
<area href="mpi_8h.html" shape="rect" coords="389,107,480,133" alt="">
</map>

<p>
<a href="block_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="block_8c.html#182b9be545371d2fcda6981134de2b44">freeBlocks</a> (int block, <a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *fd)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="block_8c.html#d2880707d0f942f5119f946db4e13e4e">getFreeBlocks</a> (int count, <a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *fd)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="block_8c.html#99dfa2e54401fafb70357a6632c4ef10">syncBat</a> (struct <a class="el" href="structvfs__mountPoint.html">vfs_mountPoint</a> *mp)</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="182b9be545371d2fcda6981134de2b44"></a><!-- doxytag: member="block.c::freeBlocks" ref="182b9be545371d2fcda6981134de2b44" args="(int block, fileDescriptor *fd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int freeBlocks           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>block</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *&nbsp;</td>
          <td class="paramname"> <em>fd</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="block_8c-source.html#l00079">79</a> of file <a class="el" href="block_8c-source.html">block.c</a>.
<p>
References <a class="el" href="ubixfs_8h-source.html#l00096">blockAllocationTableEntry::attributes</a>, <a class="el" href="ubixfs_8h-source.html#l00131">ubixFSInfo::blockAllocationTable</a>, <a class="el" href="mount_8h-source.html#l00041">vfs_mountPoint::fsInfo</a>, <a class="el" href="file_8h-source.html#l00049">fileDescriptorStruct::mp</a>, <a class="el" href="ubixfs_8h-source.html#l00098">blockAllocationTableEntry::nextBlock</a>, and <a class="el" href="block_8c-source.html#l00074">syncBat()</a>.
<p>
Here is the call graph for this function:<p><center><img src="block_8c_182b9be545371d2fcda6981134de2b44_cgraph.png" border="0" usemap="#block_8c_182b9be545371d2fcda6981134de2b44_cgraph_map" alt=""></center>
<map name="block_8c_182b9be545371d2fcda6981134de2b44_cgraph_map">
<area href="ubixfs_8h.html#99dfa2e54401fafb70357a6632c4ef10" shape="rect" coords="148,5,223,32" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="d2880707d0f942f5119f946db4e13e4e"></a><!-- doxytag: member="block.c::getFreeBlocks" ref="d2880707d0f942f5119f946db4e13e4e" args="(int count, fileDescriptor *fd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int getFreeBlocks           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structfileDescriptorStruct.html">fileDescriptor</a> *&nbsp;</td>
          <td class="paramname"> <em>fd</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="block_8c-source.html#l00096">96</a> of file <a class="el" href="block_8c-source.html">block.c</a>.
<p>
References <a class="el" href="ubixfs_8h-source.html#l00096">blockAllocationTableEntry::attributes</a>, <a class="el" href="ubixfs_8h-source.html#l00133">ubixFSInfo::batEntries</a>, <a class="el" href="ubixfs_8h-source.html#l00131">ubixFSInfo::blockAllocationTable</a>, <a class="el" href="mount_8h-source.html#l00041">vfs_mountPoint::fsInfo</a>, <a class="el" href="file_8h-source.html#l00049">fileDescriptorStruct::mp</a>, <a class="el" href="ubixfs_8h-source.html#l00098">blockAllocationTableEntry::nextBlock</a>, <a class="el" href="block_8c-source.html#l00074">syncBat()</a>, and <a class="el" href="ap-boot_8S-source.html#l00006">x1</a>.
<p>
Referenced by <a class="el" href="directory_8c-source.html#l00094">ubixFSmkDir()</a>, and <a class="el" href="ubixfs_8c-source.html#l00232">writeUbixFS()</a>.
<p>
Here is the call graph for this function:<p><center><img src="block_8c_d2880707d0f942f5119f946db4e13e4e_cgraph.png" border="0" usemap="#block_8c_d2880707d0f942f5119f946db4e13e4e_cgraph_map" alt=""></center>
<map name="block_8c_d2880707d0f942f5119f946db4e13e4e_cgraph_map">
<area href="ubixfs_8h.html#99dfa2e54401fafb70357a6632c4ef10" shape="rect" coords="172,5,247,32" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="99dfa2e54401fafb70357a6632c4ef10"></a><!-- doxytag: member="block.c::syncBat" ref="99dfa2e54401fafb70357a6632c4ef10" args="(struct vfs_mountPoint *mp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void syncBat           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structvfs__mountPoint.html">vfs_mountPoint</a> *&nbsp;</td>
          <td class="paramname"> <em>mp</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="block_8c-source.html#l00074">74</a> of file <a class="el" href="block_8c-source.html">block.c</a>.
<p>
References <a class="el" href="ubixfs_8h-source.html#l00131">ubixFSInfo::blockAllocationTable</a>, <a class="el" href="mount_8h-source.html#l00039">vfs_mountPoint::device</a>, <a class="el" href="device_8h-source.html#l00038">device_node::devInfo</a>, <a class="el" href="mount_8h-source.html#l00040">vfs_mountPoint::diskLabel</a>, <a class="el" href="mount_8h-source.html#l00041">vfs_mountPoint::fsInfo</a>, <a class="el" href="device_8h-source.html#l00052">device_interface::info</a>, <a class="el" href="mount_8h-source.html#l00042">vfs_mountPoint::partition</a>, <a class="el" href="structubixDiskLabel.html#a97973cf7f0b67811080656e11c6385f">ubixDiskLabel::partitions</a>, and <a class="el" href="structdevice__interface.html#f46913eec9f191290c82db23380bc5df">device_interface::write</a>.
<p>
Referenced by <a class="el" href="block_8c-source.html#l00079">freeBlocks()</a>, and <a class="el" href="block_8c-source.html#l00096">getFreeBlocks()</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:25:42 2006 for UbixOS V2 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>