<!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/getfreepage.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>getfreepage.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="kpanic_8h-source.html">ubixos/kpanic.h</a>></code><br> <code>#include <<a class="el" href="spinlock_8h-source.html">ubixos/spinlock.h</a>></code><br> <p> Include dependency graph for getfreepage.c:<p><center><img src="getfreepage_8c__incl.png" border="0" usemap="#src/sys/vmm/getfreepage.c_map" alt=""></center> <map name="src/sys/vmm/getfreepage.c_map"> <area href="vmm_8h.html" shape="rect" coords="269,6,376,32" alt=""> <area href="kpanic_8h.html" shape="rect" coords="259,56,387,83" alt=""> <area href="spinlock_8h.html" shape="rect" coords="435,107,573,134" alt=""> <area href="paging_8h.html" shape="rect" coords="444,6,564,32" alt=""> <area href="types_8h.html" shape="rect" coords="623,56,743,83" alt=""> </map> <p> <a href="getfreepage_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="getfreepage_8c.html#97b73a5761e664ab5c0c24382971a2e6">vmmGetFreePage</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="getfreepage_8c.html#ebc7aa9c5f3b171c3e2660c4f102b248">vmmGFPlock</a> = SPIN_LOCK_INITIALIZER</td></tr> </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="97b73a5761e664ab5c0c24382971a2e6"></a><!-- doxytag: member="getfreepage.c::vmmGetFreePage" ref="97b73a5761e664ab5c0c24382971a2e6" args="(pidType pid)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* vmmGetFreePage </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="getfreepage_8c-source.html#l00048">48</a> of file <a class="el" href="getfreepage_8c-source.html">getfreepage.c</a>. <p> References <a class="el" href="paging_8h-source.html#l00053">KERNEL_PAGE_DEFAULT</a>, <a class="el" href="kpanic_8c-source.html#l00042">kpanic()</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="paging_8c-source.html#l00160">vmm_remapPage()</a>, <a class="el" href="paging_8c-source.html#l00314">vmmClearVirtualPage()</a>, <a class="el" href="vmm__memory_8c-source.html#l00186">vmmFindFreePage()</a>, <a class="el" href="getfreepage_8c-source.html#l00034">vmmGFPlock</a>, and <a class="el" href="ap-boot_8S-source.html#l00052">x1000</a>. <p> Referenced by <a class="el" href="createvirtualspace_8c-source.html#l00081">vmmCreateVirtualSpace()</a>. <p> Here is the call graph for this function:<p><center><img src="getfreepage_8c_97b73a5761e664ab5c0c24382971a2e6_cgraph.png" border="0" usemap="#getfreepage_8c_97b73a5761e664ab5c0c24382971a2e6_cgraph_map" alt=""></center> <map name="getfreepage_8c_97b73a5761e664ab5c0c24382971a2e6_cgraph_map"> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="620,56,687,83" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="613,157,693,184" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="605,233,701,260" alt=""> <area href="paging_8h.html#a05f8d8947fb5bcec87fc6661f83243e" shape="rect" coords="209,196,348,223" alt=""> <area href="vmm_8h.html#976cf3919bf7c77c868021ec9374593b" shape="rect" coords="412,107,556,133" alt=""> <area href="paging_8h.html#230a160ddb717c5a133e55aa42e9d324" shape="rect" coords="195,360,363,387" alt=""> <area href="8259_8h.html#2b9ec30943ddb0a2ef3bd7ccfd2026c0" shape="rect" coords="755,56,845,83" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="767,107,833,133" alt=""> <area href="stdarg_8h.html#621577c2df0ad5faa281223c56eeb7a5" shape="rect" coords="764,5,836,32" alt=""> <area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="749,208,851,235" alt=""> <area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="751,157,849,184" alt=""> <area href="vmm_8h.html#e90be267d851fed04d4d9b1c6c10454a" shape="rect" coords="444,208,524,235" alt=""> </map> </div> </div><p> <hr><h2>Variable Documentation</h2> <a class="anchor" name="ebc7aa9c5f3b171c3e2660c4f102b248"></a><!-- doxytag: member="getfreepage.c::vmmGFPlock" ref="ebc7aa9c5f3b171c3e2660c4f102b248" 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="getfreepage_8c.html#ebc7aa9c5f3b171c3e2660c4f102b248">vmmGFPlock</a> = SPIN_LOCK_INITIALIZER<code> [static]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="getfreepage_8c-source.html#l00034">34</a> of file <a class="el" href="getfreepage_8c-source.html">getfreepage.c</a>. <p> Referenced by <a class="el" href="getfreepage_8c-source.html#l00048">vmmGetFreePage()</a>. </div> </div><p> <hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:26:22 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>