Newer
Older
ubix2 / doc / html / block_8c.html
@reddawg reddawg on 5 Dec 2006 8 KB More syscalls implimented
<!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="namespaces.html"><span>Namespaces</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="include_2ubixfs_2ubixfs_8h-source.html">ubixfs/ubixfs.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="include_2vfs_2file_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>
<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="structfileDescriptor.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="structfileDescriptor.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="structfileDescriptor.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="include_2ubixfs_2ubixfs_8h-source.html#l00096">blockAllocationTableEntry::attributes</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00131">ubixFSInfo::blockAllocationTable</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00098">blockAllocationTableEntry::nextBlock</a>, and <a class="el" href="block_8c-source.html#l00074">syncBat()</a>.
</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="structfileDescriptor.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="include_2ubixfs_2ubixfs_8h-source.html#l00096">blockAllocationTableEntry::attributes</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00133">ubixFSInfo::batEntries</a>, <a class="el" href="include_2ubixfs_2ubixfs_8h-source.html#l00131">ubixFSInfo::blockAllocationTable</a>, <a class="el" href="include_2ubixfs_2ubixfs_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>.
</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="include_2ubixfs_2ubixfs_8h-source.html#l00131">ubixFSInfo::blockAllocationTable</a>, <a class="el" href="mount_8h-source.html#l00040">vfs_mountPoint::device</a>, <a class="el" href="include_2sys_2device_8h-source.html#l00038">device_node::devInfo</a>, <a class="el" href="mount_8h-source.html#l00041">vfs_mountPoint::diskLabel</a>, <a class="el" href="mount_8h-source.html#l00042">vfs_mountPoint::fsInfo</a>, <a class="el" href="include_2sys_2device_8h-source.html#l00052">device_interface::info</a>, <a class="el" href="mount_8h-source.html#l00043">vfs_mountPoint::partition</a>, <a class="el" href="structubixDiskLabel.html#ff8b4b31a8831b4cbc95c86745313895">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 Tue Dec 5 23:35:02 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>