<!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/mount.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="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>mount.c File Reference</h1><code>#include <<a class="el" href="mount_8h-source.html">vfs/mount.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="kpanic_8h-source.html">ubixos/kpanic.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> <code>#include <<a class="el" href="device_8h-source.html">sys/device.h</a>></code><br> <p> Include dependency graph for mount.c:<p><center><img src="mount_8c__incl.png" border="0" usemap="#src/sys/vfs/mount.c_map" alt=""></center> <map name="src/sys/vfs/mount.c_map"> <area href="mount_8h.html" shape="rect" coords="561,17,663,44" alt=""> <area href="vitals_8h.html" shape="rect" coords="209,68,329,95" alt=""> <area href="kpanic_8h.html" shape="rect" coords="205,119,333,145" alt=""> <area href="kmalloc_8h.html" shape="rect" coords="383,169,489,196" alt=""> <area href="kprintf_8h.html" shape="rect" coords="387,220,485,247" alt=""> <area href="lib_2string_8h.html" shape="rect" coords="565,271,659,297" alt=""> <area href="device_8h.html" shape="rect" coords="216,321,323,348" alt=""> <area href="types_8h.html" shape="rect" coords="735,169,855,196" alt=""> <area href="ubthread_8h.html" shape="rect" coords="540,119,684,145" alt=""> <area href="vfs_8h.html" shape="rect" coords="397,68,475,95" alt=""> </map> <p> <a href="mount_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="mount_8c.html#7404fbe67653dda57672539b003deecd">vfs_addMount</a> (struct <a class="el" href="structvfs__mountPoint.html">vfs_mountPoint</a> *mp)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structvfs__mountPoint.html">vfs_mountPoint</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="mount_8c.html#a8cc926aa9badb781158b6738b1b0f2d">vfs_findMount</a> (char *mountPoint)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="mount_8c.html#8379310fce9e1a500f602059516e25f0">vfs_mount</a> (int major, int minor, int partition, int vfsType, char *mountPoint, char *perms)</td></tr> </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="7404fbe67653dda57672539b003deecd"></a><!-- doxytag: member="mount.c::vfs_addMount" ref="7404fbe67653dda57672539b003deecd" args="(struct vfs_mountPoint *mp)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vfs_addMount </td> <td>(</td> <td class="paramtype">struct <a class="el" href="structvfs__mountPoint.html">vfs_mountPoint</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="mount_8c-source.html#l00105">105</a> of file <a class="el" href="mount_8c-source.html">mount.c</a>. <p> References <a class="el" href="vitals_8h-source.html#l00046">vitalsStruct::mountPoints</a>, <a class="el" href="mount_8h-source.html#l00037">vfs_mountPoint::next</a>, <a class="el" href="mount_8h-source.html#l00036">vfs_mountPoint::prev</a>, and <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>. <p> Referenced by <a class="el" href="mount_8c-source.html#l00047">vfs_mount()</a>. </div> </div><p> <a class="anchor" name="a8cc926aa9badb781158b6738b1b0f2d"></a><!-- doxytag: member="mount.c::vfs_findMount" ref="a8cc926aa9badb781158b6738b1b0f2d" args="(char *mountPoint)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">struct <a class="el" href="structvfs__mountPoint.html">vfs_mountPoint</a>* vfs_findMount </td> <td>(</td> <td class="paramtype">char * </td> <td class="paramname"> <em>mountPoint</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="mount_8c-source.html#l00132">132</a> of file <a class="el" href="mount_8c-source.html">mount.c</a>. <p> References <a class="el" href="mount_8h-source.html#l00043">vfs_mountPoint::mountPoint</a>, <a class="el" href="vitals_8h-source.html#l00046">vitalsStruct::mountPoints</a>, <a class="el" href="mount_8h-source.html#l00037">vfs_mountPoint::next</a>, <a class="el" href="types_8h-source.html#l00036">NULL</a>, <a class="el" href="string_8c-source.html#l00032">strcmp()</a>, and <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>. <p> Referenced by <a class="el" href="devfs_8c-source.html#l00178">devfs_makeNode()</a>, <a class="el" href="file_8c-source.html#l00274">fopen()</a>, and <a class="el" href="file_8c-source.html#l00480">unlink()</a>. <p> Here is the call graph for this function:<p><center><img src="mount_8c_a8cc926aa9badb781158b6738b1b0f2d_cgraph.png" border="0" usemap="#mount_8c_a8cc926aa9badb781158b6738b1b0f2d_cgraph_map" alt=""></center> <map name="mount_8c_a8cc926aa9badb781158b6738b1b0f2d_cgraph_map"> <area href="lib_2string_8h.html#6f3dcb20ff11ff9db5904c3cfb61a38c" shape="rect" coords="172,5,239,32" alt=""> </map> </div> </div><p> <a class="anchor" name="8379310fce9e1a500f602059516e25f0"></a><!-- doxytag: member="mount.c::vfs_mount" ref="8379310fce9e1a500f602059516e25f0" args="(int major, int minor, int partition, int vfsType, char *mountPoint, char *perms)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vfs_mount </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>major</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>minor</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>partition</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>vfsType</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"> <em>mountPoint</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"> <em>perms</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="mount_8c-source.html#l00047">47</a> of file <a class="el" href="mount_8c-source.html">mount.c</a>. <p> References <a class="el" href="mount_8h-source.html#l00039">vfs_mountPoint::device</a>, <a class="el" href="device_8c-source.html#l00086">device_find()</a>, <a class="el" href="mount_8h-source.html#l00038">vfs_mountPoint::fs</a>, <a class="el" href="kmalloc_8c-source.html#l00351">kfree()</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="mount_8h-source.html#l00043">vfs_mountPoint::mountPoint</a>, <a class="el" href="types_8h-source.html#l00036">NULL</a>, <a class="el" href="mount_8h-source.html#l00042">vfs_mountPoint::partition</a>, <a class="el" href="mount_8h-source.html#l00044">vfs_mountPoint::perms</a>, <a class="el" href="kprintf_8c-source.html#l00051">sprintf()</a>, <a class="el" href="mount_8c-source.html#l00105">vfs_addMount()</a>, <a class="el" href="vfs_8c-source.html#l00059">vfsFindFS()</a>, <a class="el" href="structfileSystem.html#63cc4eb02c498b7ae04d3cedba288822">fileSystem::vfsInitFS</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>, and <a class="el" href="main_8c-source.html#l00097">kmain()</a>. <p> Here is the call graph for this function:<p><center><img src="mount_8c_8379310fce9e1a500f602059516e25f0_cgraph.png" border="0" usemap="#mount_8c_8379310fce9e1a500f602059516e25f0_cgraph_map" alt=""></center> <map name="mount_8c_8379310fce9e1a500f602059516e25f0_cgraph_map"> <area href="device_8h.html#0002a4ec01ee11597c6751602f3e4c3d" shape="rect" coords="528,107,627,133" alt=""> <area href="kmalloc_8h.html#aa9ed6886459604cf73ccdbf6410e487" shape="rect" coords="178,487,234,513" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="735,512,802,539" alt=""> <area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="168,284,243,311" alt=""> <area href="lib_2string_8h.html#c38cd16373d98782e1465bd3d5aba470" shape="rect" coords="174,664,238,691" alt=""> <area href="mount_8h.html#7404fbe67653dda57672539b003deecd" shape="rect" coords="148,715,263,741" alt=""> <area href="vfs_8c.html#c49aa10a62b250834a055476c849b7b3" shape="rect" coords="163,765,248,792" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="728,107,808,133" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="720,208,816,235" alt=""> <area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="864,81,966,108" alt=""> <area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="866,132,964,159" alt=""> <area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="312,309,435,336" alt=""> <area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="539,360,616,387" alt=""> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="544,309,611,336" alt=""> <area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="314,208,434,235" alt=""> <area href="paging_8h.html#541f0b43826a40b9e978f5479080bb0e" shape="rect" coords="483,157,672,184" alt=""> </map> </div> </div><p> <hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:26:15 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>