<!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/vfs/vfs.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_366cae809cefebd9796e1be555536f38.html">vfs</a></div> <h1>vfs.c File Reference</h1><code>#include <<a class="el" href="include_2vfs_2vfs_8h-source.html">vfs/vfs.h</a>></code><br> <code>#include <<a class="el" href="vitals_8h-source.html">ubixos/vitals.h</a>></code><br> <code>#include <<a class="el" href="kmalloc_8h-source.html">lib/kmalloc.h</a>></code><br> <code>#include <<a class="el" href="kprintf_8h-source.html">lib/kprintf.h</a>></code><br> <code>#include <<a class="el" href="lib_2string_8h-source.html">lib/string.h</a>></code><br> <p> <a href="vfs_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="vfs_8c.html#30417f3bdbf50fe62c86448ef91e789b">open</a> (struct <a class="el" href="structthread.html">thread</a> *td, struct <a class="el" href="structopen__args.html">open_args</a> *uap)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="vfs_8c.html#ca585ca14c08d6c1a07e1b886fc9749a">vfs_init</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structfileSystem.html">fileSystem</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="vfs_8c.html#c49aa10a62b250834a055476c849b7b3">vfsFindFS</a> (int vfsType)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="vfs_8c.html#d8cb9693ae7b6b9fc419efc975778338">vfsRegisterFS</a> (struct <a class="el" href="structfileSystem.html">fileSystem</a> newFS)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">register a file system <a href="#d8cb9693ae7b6b9fc419efc975778338"></a><br></td></tr> </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="30417f3bdbf50fe62c86448ef91e789b"></a><!-- doxytag: member="vfs.c::open" ref="30417f3bdbf50fe62c86448ef91e789b" args="(struct thread *td, struct open_args *uap)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int open </td> <td>(</td> <td class="paramtype">struct <a class="el" href="structthread.html">thread</a> * </td> <td class="paramname"> <em>td</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">struct <a class="el" href="structopen__args.html">open_args</a> * </td> <td class="paramname"> <em>uap</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="vfs_8c-source.html#l00139">139</a> of file <a class="el" href="vfs_8c-source.html">vfs.c</a>. <p> References <a class="el" href="kern__descrip_8c-source.html#l00063">falloc()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, and <a class="el" href="sysproto_8h-source.html#l00145">open_args::path</a>. </div> </div><p> <a class="anchor" name="ca585ca14c08d6c1a07e1b886fc9749a"></a><!-- doxytag: member="vfs.c::vfs_init" ref="ca585ca14c08d6c1a07e1b886fc9749a" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vfs_init </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vfs_8c-source.html#l00047">47</a> of file <a class="el" href="vfs_8c-source.html">vfs.c</a>. <p> References <a class="el" href="vitals_8h-source.html#l00045">vitalsStruct::fileSystems</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, and <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>. </div> </div><p> <a class="anchor" name="c49aa10a62b250834a055476c849b7b3"></a><!-- doxytag: member="vfs.c::vfsFindFS" ref="c49aa10a62b250834a055476c849b7b3" args="(int vfsType)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">struct <a class="el" href="structfileSystem.html">fileSystem</a>* vfsFindFS </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>vfsType</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vfs_8c-source.html#l00058">58</a> of file <a class="el" href="vfs_8c-source.html">vfs.c</a>. <p> References <a class="el" href="vitals_8h-source.html#l00045">vitalsStruct::fileSystems</a>, <a class="el" href="include_2vfs_2vfs_8h-source.html#l00058">fileSystem::next</a>, <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>, and <a class="el" href="include_2vfs_2vfs_8h-source.html#l00067">fileSystem::vfsType</a>. <p> Referenced by <a class="el" href="mount_8c-source.html#l00047">vfs_mount()</a>, and <a class="el" href="vfs_8c-source.html#l00080">vfsRegisterFS()</a>. </div> </div><p> <a class="anchor" name="d8cb9693ae7b6b9fc419efc975778338"></a><!-- doxytag: member="vfs.c::vfsRegisterFS" ref="d8cb9693ae7b6b9fc419efc975778338" args="(struct fileSystem newFS)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vfsRegisterFS </td> <td>(</td> <td class="paramtype">struct <a class="el" href="structfileSystem.html">fileSystem</a> </td> <td class="paramname"> <em>newFS</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> register a file system <p> This registers a new filesystem into the vfs which is referenced when trying to mount a device<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>newFS</em> </td><td>pointer to <a class="el" href="structfileSystem.html">fileSystem</a> structure </td></tr> </table> </dl> <p> Definition at line <a class="el" href="vfs_8c-source.html#l00080">80</a> of file <a class="el" href="vfs_8c-source.html">vfs.c</a>. <p> References <a class="el" href="vitals_8h-source.html#l00045">vitalsStruct::fileSystems</a>, <a class="el" href="kmalloc_8c-source.html#l00247">kmalloc()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="lib_2string_8h.html#e33b18edb618c656b9b795b9fce2316c">memcpy()</a>, <a class="el" href="include_2vfs_2vfs_8h-source.html#l00058">fileSystem::next</a>, <a class="el" href="def_8h-source.html#l00041">NULL</a>, <a class="el" href="include_2vfs_2vfs_8h-source.html#l00057">fileSystem::prev</a>, <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>, <a class="el" href="vfs_8c-source.html#l00058">vfsFindFS()</a>, <a class="el" href="include_2vfs_2vfs_8h-source.html#l00067">fileSystem::vfsType</a>, and <a class="el" href="ap-boot_8S-source.html#l00006">x1</a>. <p> Referenced by <a class="el" href="devfs_8c-source.html#l00215">devfs_init()</a>, <a class="el" href="ubixfs_8c-source.html#l00456">ubixfs_init()</a>, and <a class="el" href="ufs_8c-source.html#l00308">ufs_init()</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 <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>