<!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/getfreevirtualpage.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>getfreevirtualpage.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="sched_8h-source.html">ubixos/sched.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> <code>#include <<a class="el" href="kprint_8h-source.html">lib/kprint.h</a>></code><br> <p> Include dependency graph for getfreevirtualpage.c:<p><center><img src="getfreevirtualpage_8c__incl.png" border="0" usemap="#src/sys/vmm/getfreevirtualpage.c_map" alt=""></center> <map name="src/sys/vmm/getfreevirtualpage.c_map"> <area href="vmm_8h.html" shape="rect" coords="315,83,421,109" alt=""> <area href="sched_8h.html" shape="rect" coords="488,235,611,261" alt=""> <area href="kpanic_8h.html" shape="rect" coords="304,285,432,312" alt=""> <area href="spinlock_8h.html" shape="rect" coords="480,361,619,388" alt=""> <area href="kprint_8h.html" shape="rect" coords="321,387,415,413" alt=""> <area href="paging_8h.html" shape="rect" coords="489,83,609,109" alt=""> <area href="types_8h.html" shape="rect" coords="823,209,943,236" alt=""> <area href="thread_8h.html" shape="rect" coords="668,108,772,135" alt=""> <area href="tty_8h.html" shape="rect" coords="671,260,769,287" alt=""> <area href="file_8h.html" shape="rect" coords="680,311,760,337" alt=""> <area href="tss_8h.html" shape="rect" coords="680,159,760,185" alt=""> </map> <p> <a href="getfreevirtualpage_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="getfreevirtualpage_8c.html#fbc8bd5fa45d60baf5e8b5c47bf3f3b6">vmmGetFreeVirtualPage</a> (<a class="el" href="types_8h.html#e438ba74394b14d7b24b6df3b3b8c252">pidType</a> pid, int count, int type)</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="getfreevirtualpage_8c.html#153dbb51837629ad18f14637d0357248">fvpSpinLock</a> = SPIN_LOCK_INITIALIZER</td></tr> </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="fbc8bd5fa45d60baf5e8b5c47bf3f3b6"></a><!-- doxytag: member="getfreevirtualpage.c::vmmGetFreeVirtualPage" ref="fbc8bd5fa45d60baf5e8b5c47bf3f3b6" args="(pidType pid, int count, int type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* vmmGetFreeVirtualPage </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#e438ba74394b14d7b24b6df3b3b8c252">pidType</a> </td> <td class="paramname"> <em>pid</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>count</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>type</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="getfreevirtualpage_8c-source.html#l00047">47</a> of file <a class="el" href="getfreevirtualpage_8c-source.html">getfreevirtualpage.c</a>. <p> References <a class="el" href="sched_8c-source.html#l00051">_current</a>, <a class="el" href="paging_8h-source.html#l00062">btoc</a>, <a class="el" href="paging_8h-source.html#l00061">ctob</a>, <a class="el" href="getfreevirtualpage_8c-source.html#l00036">fvpSpinLock</a>, <a class="el" href="sched_8h-source.html#l00055">taskStruct::id</a>, <a class="el" href="kpanic_8h-source.html#l00033">K_PANIC</a>, <a class="el" href="kpanic_8c-source.html#l00042">kpanic()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="sched_8h-source.html#l00060">taskStruct::oInfo</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#l00049">PAGE_PRESENT</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="sched_8h-source.html#l00067">taskStruct::td</a>, <a class="el" href="thread_8h-source.html#l00040">thread::vm_daddr</a>, <a class="el" href="thread_8h-source.html#l00041">thread::vm_dsize</a>, <a class="el" href="paging_8h-source.html#l00038">VM_TASK</a>, <a class="el" href="paging_8h-source.html#l00037">VM_THRD</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="sched_8h-source.html#l00047">osInfo::vmStart</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="paging_8c-source.html#l00453">mmap()</a>, <a class="el" href="exec_8c-source.html#l00334">sysExec()</a>, <a class="el" href="syscall_8c-source.html#l00196">sysGetFreePage()</a>, and <a class="el" href="pagefault_8c-source.html#l00053">vmm_pageFault()</a>. <p> Here is the call graph for this function:<p><center><img src="getfreevirtualpage_8c_fbc8bd5fa45d60baf5e8b5c47bf3f3b6_cgraph.png" border="0" usemap="#getfreevirtualpage_8c_fbc8bd5fa45d60baf5e8b5c47bf3f3b6_cgraph_map" alt=""></center> <map name="getfreevirtualpage_8c_fbc8bd5fa45d60baf5e8b5c47bf3f3b6_cgraph_map"> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="665,107,732,133" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="812,309,879,336" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="659,157,739,184" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="651,233,747,260" alt=""> <area href="paging_8h.html#a05f8d8947fb5bcec87fc6661f83243e" shape="rect" coords="255,208,393,235" alt=""> <area href="vmm_8h.html#976cf3919bf7c77c868021ec9374593b" shape="rect" coords="457,107,601,133" alt=""> <area href="paging_8h.html#230a160ddb717c5a133e55aa42e9d324" shape="rect" coords="240,461,408,488" alt=""> <area href="8259_8h.html#2b9ec30943ddb0a2ef3bd7ccfd2026c0" shape="rect" coords="800,56,891,83" alt=""> <area href="stdarg_8h.html#621577c2df0ad5faa281223c56eeb7a5" shape="rect" coords="809,107,881,133" alt=""> <area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="795,157,896,184" alt=""> <area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="796,208,895,235" alt=""> <area href="vmm_8h.html#e90be267d851fed04d4d9b1c6c10454a" shape="rect" coords="489,208,569,235" alt=""> </map> </div> </div><p> <hr><h2>Variable Documentation</h2> <a class="anchor" name="153dbb51837629ad18f14637d0357248"></a><!-- doxytag: member="getfreevirtualpage.c::fvpSpinLock" ref="153dbb51837629ad18f14637d0357248" 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="getfreevirtualpage_8c.html#153dbb51837629ad18f14637d0357248">fvpSpinLock</a> = SPIN_LOCK_INITIALIZER<code> [static]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="getfreevirtualpage_8c-source.html#l00036">36</a> of file <a class="el" href="getfreevirtualpage_8c-source.html">getfreevirtualpage.c</a>. <p> Referenced by <a class="el" href="getfreevirtualpage_8c-source.html#l00047">vmmGetFreeVirtualPage()</a>. </div> </div><p> <hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:26:23 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>