<!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/vmm/copyvirtualspace.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_b87deefade4e886319aa926bd3ba1491.html">vmm</a></div> <h1>copyvirtualspace.c File Reference</h1><code>#include <<a class="el" href="vmm_8h-source.html">vmm/vmm.h</a>></code><br> <code>#include <<a class="el" href="kern__sysctl_8h-source.html">sys/kern_sysctl.h</a>></code><br> <code>#include <<a class="el" href="spinlock_8h-source.html">ubixos/spinlock.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="string_8h-source.html">string.h</a>></code><br> <p> Include dependency graph for copyvirtualspace.c:<p><center><img src="copyvirtualspace_8c__incl.png" border="0" usemap="#src/sys/vmm/copyvirtualspace.c_map" alt=""></center> <map name="src/sys/vmm/copyvirtualspace.c_map"> <area href="vmm_8h.html" shape="rect" coords="309,5,416,32" alt=""> <area href="kern__sysctl_8h.html" shape="rect" coords="295,56,431,83" alt=""> <area href="spinlock_8h.html" shape="rect" coords="293,107,432,133" alt=""> <area href="kpanic_8h.html" shape="rect" coords="299,157,427,184" alt=""> <area href="string_8h.html" shape="rect" coords="327,208,399,235" alt=""> </map> <p> <a href="copyvirtualspace_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">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="copyvirtualspace_8c.html#2d305244a54b4bb8c56698eca1b4c82c">vmmCopyVirtualSpace</a> (<a class="el" href="types_8h.html#e438ba74394b14d7b24b6df3b3b8c252">pidType</a> pid)</td></tr> <tr><td colspan="2"><br><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="spinlock_8h.html#a240e9404b4ede1e0d714610080d1176">spinLock_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="copyvirtualspace_8c.html#d0e5c4817eb928f6db5f6b89bb96d997">cvsSpinLock</a> = SPIN_LOCK_INITIALIZER</td></tr> </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="2d305244a54b4bb8c56698eca1b4c82c"></a><!-- doxytag: member="copyvirtualspace.c::vmmCopyVirtualSpace" ref="2d305244a54b4bb8c56698eca1b4c82c" args="(pidType pid)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* vmmCopyVirtualSpace </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#e438ba74394b14d7b24b6df3b3b8c252">pidType</a> </td> <td class="paramname"> <em>pid</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="copyvirtualspace_8c-source.html#l00053">53</a> of file <a class="el" href="copyvirtualspace_8c-source.html">copyvirtualspace.c</a>. <p> References <a class="el" href="vmm__memory_8c-source.html#l00266">adjustCowCounter()</a>, <a class="el" href="copyvirtualspace_8c-source.html#l00036">cvsSpinLock</a>, <a class="el" href="kpanic_8c-source.html#l00042">kpanic()</a>, <a class="el" href="memset_8c-source.html#l00037">memset()</a>, <a class="el" href="paging_8h-source.html#l00046">PAGE_COW</a>, <a class="el" href="paging_8h-source.html#l00052">PAGE_DEFAULT</a>, <a class="el" href="paging_8h-source.html#l00047">PAGE_STACK</a>, <a class="el" href="paging_8h-source.html#l00042">pageEntries</a>, <a class="el" href="paging_8h-source.html#l00044">parentPageDirAddr</a>, <a class="el" href="spinlock_8c-source.html#l00056">spinLock()</a>, <a class="el" href="spinlock_8c-source.html#l00037">spinUnlock()</a>, <a class="el" href="paging_8h-source.html#l00043">tablesBaseAddress</a>, <a class="el" href="getphysicaladdr_8c-source.html#l00040">vmm_getPhysicalAddr()</a>, <a class="el" href="paging_8c-source.html#l00253">vmmGetFreeKernelPage()</a>, <a class="el" href="unmappage_8c-source.html#l00050">vmmUnmapPage()</a>, <a class="el" href="ap-boot_8S-source.html#l00006">x1</a>, and <a class="el" href="ap-boot_8S-source.html#l00052">x1000</a>. <p> Referenced by <a class="el" href="fork_8c-source.html#l00050">fork_copyProcess()</a>. <p> Here is the call graph for this function:<p><center><img src="copyvirtualspace_8c_2d305244a54b4bb8c56698eca1b4c82c_cgraph.png" border="0" usemap="#copyvirtualspace_8c_2d305244a54b4bb8c56698eca1b4c82c_cgraph_map" alt=""></center> <map name="copyvirtualspace_8c_2d305244a54b4bb8c56698eca1b4c82c_cgraph_map"> <area href="vmm_8h.html#362d462b3a1e19b5e0ef95e1839dbf11" shape="rect" coords="248,56,395,83" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="470,56,550,83" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="462,107,558,133" alt=""> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="288,208,355,235" alt=""> <area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="283,259,360,285" alt=""> <area href="paging_8h.html#e88bcfc69132a46a1982237913101a5b" shape="rect" coords="236,309,407,336" alt=""> <area href="paging_8h.html#30a38035243b9dfb285b3793788126be" shape="rect" coords="230,107,414,133" alt=""> <area href="paging_8h.html#fd94da50e455602f86ad7dae2fc9d1db" shape="rect" coords="254,360,390,387" alt=""> </map> </div> </div><p> <hr><h2>Variable Documentation</h2> <a class="anchor" name="d0e5c4817eb928f6db5f6b89bb96d997"></a><!-- doxytag: member="copyvirtualspace.c::cvsSpinLock" ref="d0e5c4817eb928f6db5f6b89bb96d997" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="spinlock_8h.html#a240e9404b4ede1e0d714610080d1176">spinLock_t</a> <a class="el" href="copyvirtualspace_8c.html#d0e5c4817eb928f6db5f6b89bb96d997">cvsSpinLock</a> = SPIN_LOCK_INITIALIZER<code> [static]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="copyvirtualspace_8c-source.html#l00036">36</a> of file <a class="el" href="copyvirtualspace_8c-source.html">copyvirtualspace.c</a>. <p> Referenced by <a class="el" href="copyvirtualspace_8c-source.html#l00053">vmmCopyVirtualSpace()</a>. </div> </div><p> <hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:26:19 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>