<!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/include/vmm/vmm.h 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_caf4200c438ae9601464168e21e8e4d8.html">include</a> » <a class="el" href="dir_d5a59026f863a7643db80a2edf430514.html">vmm</a></div> <h1>vmm.h File Reference</h1><code>#include <<a class="el" href="paging_8h-source.html">vmm/paging.h</a>></code><br> <code>#include <<a class="el" href="types_8h-source.html">ubixos/types.h</a>></code><br> <p> Include dependency graph for vmm.h:<p><center><img src="vmm_8h__incl.png" border="0" usemap="#src/sys/include/vmm/vmm.h_map" alt=""></center> <map name="src/sys/include/vmm/vmm.h_map"> <area href="paging_8h.html" shape="rect" coords="267,81,387,108" alt=""> <area href="types_8h.html" shape="rect" coords="759,81,879,108" alt=""> <area href="sysproto_8h.html" shape="rect" coords="436,56,553,83" alt=""> <area href="thread_8h.html" shape="rect" coords="604,81,708,108" alt=""> </map> <p> This graph shows which files directly or indirectly include this file:<p><center><img src="vmm_8h__dep__incl.png" border="0" usemap="#src/sys/include/vmm/vmm.hdep_map" alt=""></center> <map name="src/sys/include/vmm/vmm.hdep_map"> <area href="init_8h.html" shape="rect" coords="288,6,496,32" alt=""> <area href="bioscall_8c.html" shape="rect" coords="302,56,483,83" alt=""> <area href="elf_8c.html" shape="rect" coords="319,107,466,134" alt=""> <area href="endtask_8c.html" shape="rect" coords="300,158,484,184" alt=""> <area href="exec_8c.html" shape="rect" coords="312,208,472,235" alt=""> <area href="fork_8c.html" shape="rect" coords="315,259,470,286" alt=""> <area href="ld_8c.html" shape="rect" coords="322,310,463,336" alt=""> <area href="sched_8c.html" shape="rect" coords="307,360,478,387" alt=""> <area href="syscall_8c.html" shape="rect" coords="304,411,480,438" alt=""> <area href="systemtask_8c.html" shape="rect" coords="290,462,495,488" alt=""> <area href="kmod_8c.html" shape="rect" coords="307,512,478,539" alt=""> <area href="kmalloc_8c.html" shape="rect" coords="314,563,471,590" alt=""> <area href="idt_8c.html" shape="rect" coords="328,614,456,640" alt=""> <area href="copyvirtualspace_8c.html" shape="rect" coords="274,664,511,691" alt=""> <area href="createvirtualspace_8c.html" shape="rect" coords="268,715,516,742" alt=""> <area href="getfreepage_8c.html" shape="rect" coords="290,766,495,792" alt=""> <area href="getfreevirtualpage_8c.html" shape="rect" coords="268,816,516,843" alt=""> <area href="getphysicaladdr_8c.html" shape="rect" coords="278,867,507,894" alt=""> <area href="pagefault_8c.html" shape="rect" coords="299,918,486,944" alt=""> <area href="paging_8c.html" shape="rect" coords="308,968,476,995" alt=""> <area href="setpageattributes_8c.html" shape="rect" coords="271,1019,514,1046" alt=""> <area href="unmappage_8c.html" shape="rect" coords="291,1070,494,1096" alt=""> <area href="vmm__init_8c.html" shape="rect" coords="300,1120,484,1147" alt=""> <area href="vmm__memory_8c.html" shape="rect" coords="283,1171,502,1198" alt=""> </map> <p> <a href="vmm_8h-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>Data Structures</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structmMap.html">mMap</a></td></tr> <tr><td colspan="2"><br><h2>Defines</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm_8h.html#b75ffaa83e1dc903d97c411c84dfec0f">memAvail</a> 1</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm_8h.html#41dc1abc6436bd66a4269de8ab471181">memNotavail</a> 2</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm_8h.html#e6c443b60824c02f199f51cf4a14e9f4">vmmID</a> -3</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm_8h.html#e6d4c286bb58576d1802a2c7d92e698e">vmmMemoryMapAddr</a> 0xE6667000</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="vmm_8h.html#362d462b3a1e19b5e0ef95e1839dbf11">adjustCowCounter</a> (<a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> baseAddr, int adjustment)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm_8h.html#1a89fbc2f80ca828332c5ef31801faa3">countMemory</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm_8h.html#e90be267d851fed04d4d9b1c6c10454a">freePage</a> (<a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> pageAddr)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm_8h.html#ac183f585641487a954ca46c0d7bde31">vmm_init</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="types_8h.html#ba29fd78d95cce0ecb249c24b58d07da">u_int32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm_8h.html#976cf3919bf7c77c868021ec9374593b">vmmFindFreePage</a> (<a class="el" href="types_8h.html#e438ba74394b14d7b24b6df3b3b8c252">pidType</a> pid)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm_8h.html#a24b696e386ef97dfe88b9b434c671c6">vmmFreeProcessPages</a> (<a class="el" href="types_8h.html#e438ba74394b14d7b24b6df3b3b8c252">pidType</a> pid)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm_8h.html#0926a4c7f70e387891f6124a48258b64">vmmMemMapInit</a> ()</td></tr> <tr><td colspan="2"><br><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm_8h.html#2b0091bdc36e32af3daf9cfcaa7c04e1">numPages</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structmMap.html">mMap</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm_8h.html#89e87741958ee81f1811075b25af058a">vmmMemoryMap</a></td></tr> </table> <hr><h2>Define Documentation</h2> <a class="anchor" name="b75ffaa83e1dc903d97c411c84dfec0f"></a><!-- doxytag: member="vmm.h::memAvail" ref="b75ffaa83e1dc903d97c411c84dfec0f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define memAvail 1 </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm_8h-source.html#l00036">36</a> of file <a class="el" href="vmm_8h-source.html">vmm.h</a>. <p> Referenced by <a class="el" href="vmm__memory_8c-source.html#l00266">adjustCowCounter()</a>, <a class="el" href="vmm__memory_8c-source.html#l00228">freePage()</a>, <a class="el" href="vmm__memory_8c-source.html#l00186">vmmFindFreePage()</a>, <a class="el" href="vmm__memory_8c-source.html#l00296">vmmFreeProcessPages()</a>, and <a class="el" href="vmm__memory_8c-source.html#l00057">vmmMemMapInit()</a>. </div> </div><p> <a class="anchor" name="41dc1abc6436bd66a4269de8ab471181"></a><!-- doxytag: member="vmm.h::memNotavail" ref="41dc1abc6436bd66a4269de8ab471181" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define memNotavail 2 </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm_8h-source.html#l00037">37</a> of file <a class="el" href="vmm_8h-source.html">vmm.h</a>. <p> Referenced by <a class="el" href="vmm__memory_8c-source.html#l00186">vmmFindFreePage()</a>, and <a class="el" href="vmm__memory_8c-source.html#l00057">vmmMemMapInit()</a>. </div> </div><p> <a class="anchor" name="e6c443b60824c02f199f51cf4a14e9f4"></a><!-- doxytag: member="vmm.h::vmmID" ref="e6c443b60824c02f199f51cf4a14e9f4" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define vmmID -3 </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm_8h-source.html#l00038">38</a> of file <a class="el" href="vmm_8h-source.html">vmm.h</a>. <p> Referenced by <a class="el" href="vmm__memory_8c-source.html#l00266">adjustCowCounter()</a>, <a class="el" href="vmm__memory_8c-source.html#l00296">vmmFreeProcessPages()</a>, and <a class="el" href="vmm__memory_8c-source.html#l00057">vmmMemMapInit()</a>. </div> </div><p> <a class="anchor" name="e6d4c286bb58576d1802a2c7d92e698e"></a><!-- doxytag: member="vmm.h::vmmMemoryMapAddr" ref="e6d4c286bb58576d1802a2c7d92e698e" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define vmmMemoryMapAddr 0xE6667000 </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm_8h-source.html#l00039">39</a> of file <a class="el" href="vmm_8h-source.html">vmm.h</a>. <p> Referenced by <a class="el" href="paging_8c-source.html#l00059">vmm_pagingInit()</a>. </div> </div><p> <hr><h2>Function Documentation</h2> <a class="anchor" name="362d462b3a1e19b5e0ef95e1839dbf11"></a><!-- doxytag: member="vmm.h::adjustCowCounter" ref="362d462b3a1e19b5e0ef95e1839dbf11" args="(uInt32 baseAddr, int adjustment)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int adjustCowCounter </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td> <td class="paramname"> <em>baseAddr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>adjustment</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="vmm__memory_8c-source.html#l00266">266</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> References <a class="el" href="assert_8h-source.html#l00064">assert</a>, <a class="el" href="vmm_8h-source.html#l00046">mMap::cowCounter</a>, <a class="el" href="vmm__memory_8c-source.html#l00039">freePages</a>, <a class="el" href="vitals_8h-source.html#l00044">vitalsStruct::freePages</a>, <a class="el" href="vmm_8h-source.html#l00036">memAvail</a>, <a class="el" href="vmm_8h-source.html#l00045">mMap::pid</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="vmm_8h-source.html#l00043">mMap::status</a>, <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>, <a class="el" href="vmm__memory_8c-source.html#l00041">vmmCowSpinLock</a>, <a class="el" href="vmm_8h-source.html#l00038">vmmID</a>, and <a class="el" href="vmm__memory_8c-source.html#l00045">vmmMemoryMap</a>. <p> Referenced by <a class="el" href="vmm__memory_8c-source.html#l00228">freePage()</a>, <a class="el" href="pagefault_8c-source.html#l00053">vmm_pageFault()</a>, <a class="el" href="copyvirtualspace_8c-source.html#l00053">vmmCopyVirtualSpace()</a>, and <a class="el" href="vmm__memory_8c-source.html#l00296">vmmFreeProcessPages()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm_8h_362d462b3a1e19b5e0ef95e1839dbf11_cgraph.png" border="0" usemap="#vmm_8h_362d462b3a1e19b5e0ef95e1839dbf11_cgraph_map" alt=""></center> <map name="vmm_8h_362d462b3a1e19b5e0ef95e1839dbf11_cgraph_map"> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="208,81,288,108" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="200,132,296,159" alt=""> <area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="344,56,445,83" alt=""> <area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="629,107,728,133" alt=""> <area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="495,56,556,83" alt=""> <area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="605,5,752,32" alt=""> <area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="609,56,748,83" alt=""> </map> </div> </div><p> <a class="anchor" name="1a89fbc2f80ca828332c5ef31801faa3"></a><!-- doxytag: member="vmm.h::countMemory" ref="1a89fbc2f80ca828332c5ef31801faa3" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int countMemory </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="vmm__memory_8c-source.html#l00104">104</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> References <a class="el" href="ap-boot_8S-source.html#l00006">cr0</a>, <a class="el" href="io_8c-source.html#l00039">inportByte()</a>, and <a class="el" href="io_8c-source.html#l00073">outportByte()</a>. <p> Referenced by <a class="el" href="vmm__memory_8c-source.html#l00057">vmmMemMapInit()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm_8h_1a89fbc2f80ca828332c5ef31801faa3_cgraph.png" border="0" usemap="#vmm_8h_1a89fbc2f80ca828332c5ef31801faa3_cgraph_map" alt=""></center> <map name="vmm_8h_1a89fbc2f80ca828332c5ef31801faa3_cgraph_map"> <area href="io_8h.html#77b934268de1b3ecdcf3f275413b3108" shape="rect" coords="173,5,267,32" alt=""> <area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="169,56,271,83" alt=""> </map> </div> </div><p> <a class="anchor" name="e90be267d851fed04d4d9b1c6c10454a"></a><!-- doxytag: member="vmm.h::freePage" ref="e90be267d851fed04d4d9b1c6c10454a" args="(uInt32 pageAddr)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int freePage </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td> <td class="paramname"> <em>pageAddr</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00228">228</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> References <a class="el" href="vmm__memory_8c-source.html#l00266">adjustCowCounter()</a>, <a class="el" href="assert_8h-source.html#l00064">assert</a>, <a class="el" href="vmm_8h-source.html#l00046">mMap::cowCounter</a>, <a class="el" href="vmm__memory_8c-source.html#l00039">freePages</a>, <a class="el" href="vitals_8h-source.html#l00044">vitalsStruct::freePages</a>, <a class="el" href="vmm_8h-source.html#l00036">memAvail</a>, <a class="el" href="vmm_8h-source.html#l00045">mMap::pid</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="vmm_8h-source.html#l00043">mMap::status</a>, <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>, <a class="el" href="vmm__memory_8c-source.html#l00045">vmmMemoryMap</a>, and <a class="el" href="vmm__memory_8c-source.html#l00040">vmmSpinLock</a>. <p> Referenced by <a class="el" href="paging_8c-source.html#l00160">vmm_remapPage()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm_8h_e90be267d851fed04d4d9b1c6c10454a_cgraph.png" border="0" usemap="#vmm_8h_e90be267d851fed04d4d9b1c6c10454a_cgraph_map" alt=""></center> <map name="vmm_8h_e90be267d851fed04d4d9b1c6c10454a_cgraph_map"> <area href="vmm_8h.html#362d462b3a1e19b5e0ef95e1839dbf11" shape="rect" coords="136,107,283,133" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="339,81,419,108" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="331,144,427,171" alt=""> <area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="475,56,576,83" alt=""> <area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="760,107,859,133" alt=""> <area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="625,56,687,83" alt=""> <area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="736,5,883,32" alt=""> <area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="740,56,879,83" alt=""> </map> </div> </div><p> <a class="anchor" name="ac183f585641487a954ca46c0d7bde31"></a><!-- doxytag: member="vmm.h::vmm_init" ref="ac183f585641487a954ca46c0d7bde31" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vmm_init </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Function: int <a class="el" href="vmm_8h.html#ac183f585641487a954ca46c0d7bde31">vmm_init()</a><p> Description: Initializes the vmm subsystem<p> Notes: <p> Definition at line <a class="el" href="vmm__init_8c-source.html#l00041">41</a> of file <a class="el" href="vmm__init_8c-source.html">vmm_init.c</a>. <p> References <a class="el" href="kpanic_8h-source.html#l00033">K_PANIC</a>, <a class="el" href="paging_8c-source.html#l00059">vmm_pagingInit()</a>, and <a class="el" href="vmm__memory_8c-source.html#l00057">vmmMemMapInit()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm_8h_ac183f585641487a954ca46c0d7bde31_cgraph.png" border="0" usemap="#vmm_8h_ac183f585641487a954ca46c0d7bde31_cgraph_map" alt=""></center> <map name="vmm_8h_ac183f585641487a954ca46c0d7bde31_cgraph_map"> <area href="paging_8h.html#f47a45e3f0802f5aac053808127aaaf1" shape="rect" coords="143,385,274,412" alt=""> <area href="vmm_8h.html#0926a4c7f70e387891f6124a48258b64" shape="rect" coords="139,512,278,539" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="916,449,983,476" alt=""> <area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="356,335,434,361" alt=""> <area href="paging_8h.html#a05f8d8947fb5bcec87fc6661f83243e" shape="rect" coords="326,272,464,299" alt=""> <area href="vmm_8h.html#976cf3919bf7c77c868021ec9374593b" shape="rect" coords="514,309,658,336" alt=""> <area href="vmm_8h.html#e90be267d851fed04d4d9b1c6c10454a" shape="rect" coords="546,157,626,184" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="910,233,990,260" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="902,81,998,108" alt=""> <area href="vmm_8h.html#362d462b3a1e19b5e0ef95e1839dbf11" shape="rect" coords="707,107,854,133" alt=""> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="747,360,814,387" alt=""> <area href="8259_8h.html#2b9ec30943ddb0a2ef3bd7ccfd2026c0" shape="rect" coords="904,385,995,412" alt=""> <area href="stdarg_8h.html#621577c2df0ad5faa281223c56eeb7a5" shape="rect" coords="914,335,986,361" alt=""> <area href="vmm_8h.html#1a89fbc2f80ca828332c5ef31801faa3" shape="rect" coords="338,563,452,589" alt=""> <area href="io_8h.html#77b934268de1b3ecdcf3f275413b3108" shape="rect" coords="539,613,632,640" alt=""> <area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="535,563,636,589" alt=""> </map> </div> </div><p> <a class="anchor" name="976cf3919bf7c77c868021ec9374593b"></a><!-- doxytag: member="vmm.h::vmmFindFreePage" ref="976cf3919bf7c77c868021ec9374593b" args="(pidType pid)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#ba29fd78d95cce0ecb249c24b58d07da">u_int32_t</a> vmmFindFreePage </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="vmm__memory_8c-source.html#l00186">186</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> References <a class="el" href="vmm__memory_8c-source.html#l00039">freePages</a>, <a class="el" href="vitals_8h-source.html#l00044">vitalsStruct::freePages</a>, <a class="el" href="kpanic_8c-source.html#l00042">kpanic()</a>, <a class="el" href="vmm_8h-source.html#l00036">memAvail</a>, <a class="el" href="vmm_8h-source.html#l00037">memNotavail</a>, <a class="el" href="vmm__memory_8c-source.html#l00044">numPages</a>, <a class="el" href="vmm_8h-source.html#l00045">mMap::pid</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="fdc_8c-source.html#l00054">status</a>, <a class="el" href="kmalloc_8h-source.html#l00039">sysID</a>, <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>, <a class="el" href="vmm__memory_8c-source.html#l00045">vmmMemoryMap</a>, and <a class="el" href="vmm__memory_8c-source.html#l00040">vmmSpinLock</a>. <p> Referenced by <a class="el" href="elf_8c-source.html#l00111">elf_loadfile()</a>, <a class="el" href="exec_8c-source.html#l00143">execFile()</a>, <a class="el" href="kmod_8c-source.html#l00075">kmod_load()</a>, <a class="el" href="ld_8c-source.html#l00042">ldEnable()</a>, <a class="el" href="paging_8c-source.html#l00478">obreak()</a>, <a class="el" href="exec_8c-source.html#l00552">sys_exec()</a>, <a class="el" href="exec_8c-source.html#l00334">sysExec()</a>, <a class="el" href="paging_8c-source.html#l00401">vmm_getFreeMallocPage()</a>, <a class="el" href="pagefault_8c-source.html#l00053">vmm_pageFault()</a>, <a class="el" href="paging_8c-source.html#l00059">vmm_pagingInit()</a>, <a class="el" href="paging_8c-source.html#l00160">vmm_remapPage()</a>, <a class="el" href="paging_8c-source.html#l00253">vmmGetFreeKernelPage()</a>, <a class="el" href="getfreepage_8c-source.html#l00048">vmmGetFreePage()</a>, and <a class="el" href="getfreevirtualpage_8c-source.html#l00047">vmmGetFreeVirtualPage()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm_8h_976cf3919bf7c77c868021ec9374593b_cgraph.png" border="0" usemap="#vmm_8h_976cf3919bf7c77c868021ec9374593b_cgraph_map" alt=""></center> <map name="vmm_8h_976cf3919bf7c77c868021ec9374593b_cgraph_map"> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="215,81,281,108" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="208,157,288,184" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="200,208,296,235" alt=""> <area href="8259_8h.html#2b9ec30943ddb0a2ef3bd7ccfd2026c0" shape="rect" coords="349,5,440,32" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="361,56,428,83" alt=""> <area href="stdarg_8h.html#621577c2df0ad5faa281223c56eeb7a5" shape="rect" coords="359,107,431,133" alt=""> <area href="vsprintf_8c.html#c2f4c669c6f6aa6caa5ab8adb1b07dd0" shape="rect" coords="497,56,572,83" alt=""> <area href="vsprintf_8c.html#3fa7c8ef8597579301cb4b5c59bc6d9a" shape="rect" coords="495,107,575,133" alt=""> <area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="344,157,445,184" alt=""> <area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="648,208,747,235" alt=""> <area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="504,157,565,184" alt=""> <area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="624,107,771,133" alt=""> <area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="628,157,767,184" alt=""> </map> </div> </div><p> <a class="anchor" name="a24b696e386ef97dfe88b9b434c671c6"></a><!-- doxytag: member="vmm.h::vmmFreeProcessPages" ref="a24b696e386ef97dfe88b9b434c671c6" args="(pidType pid)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vmmFreeProcessPages </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="vmm__memory_8c-source.html#l00296">296</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> References <a class="el" href="vmm__memory_8c-source.html#l00266">adjustCowCounter()</a>, <a class="el" href="vmm_8h-source.html#l00046">mMap::cowCounter</a>, <a class="el" href="vmm__memory_8c-source.html#l00039">freePages</a>, <a class="el" href="vitals_8h-source.html#l00044">vitalsStruct::freePages</a>, <a class="el" href="vmm_8h-source.html#l00036">memAvail</a>, <a class="el" href="vmm__memory_8c-source.html#l00044">numPages</a>, <a class="el" href="paging_8h-source.html#l00046">PAGE_COW</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="vmm_8h-source.html#l00045">mMap::pid</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="fdc_8c-source.html#l00054">status</a>, <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>, <a class="el" href="paging_8h-source.html#l00043">tablesBaseAddress</a>, <a class="el" href="vmm_8h-source.html#l00038">vmmID</a>, <a class="el" href="vmm__memory_8c-source.html#l00045">vmmMemoryMap</a>, <a class="el" href="vmm__memory_8c-source.html#l00040">vmmSpinLock</a>, and <a class="el" href="ap-boot_8S-source.html#l00052">x1000</a>. <p> Referenced by <a class="el" href="systemtask_8c-source.html#l00048">systemTask()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm_8h_a24b696e386ef97dfe88b9b434c671c6_cgraph.png" border="0" usemap="#vmm_8h_a24b696e386ef97dfe88b9b434c671c6_cgraph_map" alt=""></center> <map name="vmm_8h_a24b696e386ef97dfe88b9b434c671c6_cgraph_map"> <area href="vmm_8h.html#362d462b3a1e19b5e0ef95e1839dbf11" shape="rect" coords="229,107,376,133" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="432,81,512,108" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="424,144,520,171" alt=""> <area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="568,56,669,83" alt=""> <area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="853,107,952,133" alt=""> <area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="719,56,780,83" alt=""> <area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="829,5,976,32" alt=""> <area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="833,56,972,83" alt=""> </map> </div> </div><p> <a class="anchor" name="0926a4c7f70e387891f6124a48258b64"></a><!-- doxytag: member="vmm.h::vmmMemMapInit" ref="0926a4c7f70e387891f6124a48258b64" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vmmMemMapInit </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="vmm__memory_8c-source.html#l00057">57</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> References <a class="el" href="vmm__memory_8c-source.html#l00104">countMemory()</a>, <a class="el" href="vmm__memory_8c-source.html#l00039">freePages</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="vmm_8h-source.html#l00036">memAvail</a>, <a class="el" href="vmm_8h-source.html#l00037">memNotavail</a>, <a class="el" href="vmm__memory_8c-source.html#l00044">numPages</a>, <a class="el" href="vmm_8h-source.html#l00042">mMap::pageAddr</a>, <a class="el" href="vmm_8h-source.html#l00045">mMap::pid</a>, <a class="el" href="vmm_8h-source.html#l00043">mMap::status</a>, <a class="el" href="fdc_8c-source.html#l00054">status</a>, <a class="el" href="vmm_8h-source.html#l00038">vmmID</a>, <a class="el" href="vmm__memory_8c-source.html#l00045">vmmMemoryMap</a>, and <a class="el" href="ap-boot_8S-source.html#l00052">x1000</a>. <p> Referenced by <a class="el" href="vmm__init_8c-source.html#l00041">vmm_init()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm_8h_0926a4c7f70e387891f6124a48258b64_cgraph.png" border="0" usemap="#vmm_8h_0926a4c7f70e387891f6124a48258b64_cgraph_map" alt=""></center> <map name="vmm_8h_0926a4c7f70e387891f6124a48258b64_cgraph_map"> <area href="vmm_8h.html#1a89fbc2f80ca828332c5ef31801faa3" shape="rect" coords="192,31,307,57" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="216,81,283,108" alt=""> <area href="io_8h.html#77b934268de1b3ecdcf3f275413b3108" shape="rect" coords="360,5,453,32" alt=""> <area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="356,56,457,83" alt=""> </map> </div> </div><p> <hr><h2>Variable Documentation</h2> <a class="anchor" name="2b0091bdc36e32af3daf9cfcaa7c04e1"></a><!-- doxytag: member="vmm.h::numPages" ref="2b0091bdc36e32af3daf9cfcaa7c04e1" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="vmm__memory_8c.html#2b0091bdc36e32af3daf9cfcaa7c04e1">numPages</a> </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00044">44</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> Referenced by <a class="el" href="paging_8c-source.html#l00059">vmm_pagingInit()</a>, <a class="el" href="vmm__memory_8c-source.html#l00186">vmmFindFreePage()</a>, <a class="el" href="vmm__memory_8c-source.html#l00296">vmmFreeProcessPages()</a>, and <a class="el" href="vmm__memory_8c-source.html#l00057">vmmMemMapInit()</a>. </div> </div><p> <a class="anchor" name="89e87741958ee81f1811075b25af058a"></a><!-- doxytag: member="vmm.h::vmmMemoryMap" ref="89e87741958ee81f1811075b25af058a" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmMap.html">mMap</a>* <a class="el" href="vmm__memory_8c.html#89e87741958ee81f1811075b25af058a">vmmMemoryMap</a> </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00045">45</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> Referenced by <a class="el" href="vmm__memory_8c-source.html#l00266">adjustCowCounter()</a>, <a class="el" href="vmm__memory_8c-source.html#l00228">freePage()</a>, <a class="el" href="main_8c-source.html#l00097">kmain()</a>, <a class="el" href="paging_8c-source.html#l00059">vmm_pagingInit()</a>, <a class="el" href="vmm__memory_8c-source.html#l00186">vmmFindFreePage()</a>, <a class="el" href="vmm__memory_8c-source.html#l00296">vmmFreeProcessPages()</a>, and <a class="el" href="vmm__memory_8c-source.html#l00057">vmmMemMapInit()</a>. </div> </div><p> <hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:22:44 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>