<!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 Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="classes.html"><span>Data 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> <u>S</u>earch for </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 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> » <a class="el" href="dir_832905b1f7f5feaf61a306b40c0ac817.html">sys</a> » <a class="el" href="dir_74196872fc832845f1a07f1162e5c554.html">ubixfs</a></div>
<h1>block.c File Reference</h1>
<p>
<code>#include <<a class="el" href="include_2ubixfs_2ubixfs_8h-source.html">ubixfs/ubixfs.h</a>></code><br>
<code>#include <<a class="el" href="include_2vfs_2file_8h-source.html">vfs/file.h</a>></code><br>
<code>#include <<a class="el" href="mount_8h-source.html">vfs/mount.h</a>></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 </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 </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="block_8c.html#ebeb52b2f30d1dcf2dd2d8883fc970d6">syncBat</a> (<a class="el" href="structvfs__mountPoint.html">vfs_mountPoint_t</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 </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> * </td>
<td class="paramname"> <em>fd</em></td><td> </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#l00076">76</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#l00071">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 </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> * </td>
<td class="paramname"> <em>fd</em></td><td> </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#l00093">93</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#l00071">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="ebeb52b2f30d1dcf2dd2d8883fc970d6"></a><!-- doxytag: member="block.c::syncBat" ref="ebeb52b2f30d1dcf2dd2d8883fc970d6" args="(vfs_mountPoint_t *mp)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void syncBat </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structvfs__mountPoint.html">vfs_mountPoint_t</a> * </td>
<td class="paramname"> <em>mp</em> </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#l00071">71</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#l00039">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#l00040">vfs_mountPoint::diskLabel</a>, <a class="el" href="mount_8h-source.html#l00041">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#l00042">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#l00076">freeBlocks()</a>, and <a class="el" href="block_8c-source.html#l00093">getFreeBlocks()</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Sun Dec 3 02:38:10 2006 for UbixOS V2 by
<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>