blob: bab357ac2c4529c160f70b08bd959c7eb3222439 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
<table class="head">
<tr>
<td class="head-ltitle">PMAP_RESIDENT_COUNT(9)</td>
<td class="head-vol">Kernel Developer's Manual</td>
<td class="head-rtitle">PMAP_RESIDENT_COUNT(9)</td>
</tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">pmap_resident_count</code>,
<code class="Nm">pmap_wired_count</code> — <span class="Nd">return
page resident and wiring statistics</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp"><code class="In">#include
<<a class="In">sys/param.h</a>></code>
<br/>
<code class="In">#include <<a class="In">vm/vm.h</a>></code>
<br/>
<code class="In">#include <<a class="In">vm/pmap.h</a>></code></p>
<p class="Pp"><var class="Ft">long</var>
<br/>
<code class="Fn">pmap_resident_count</code>(<var class="Fa" style="white-space: nowrap;">pmap_t
pmap</var>);</p>
<p class="Pp"><var class="Ft">long</var>
<br/>
<code class="Fn">pmap_wired_count</code>(<var class="Fa" style="white-space: nowrap;">pmap_t
pmap</var>);</p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The
<a class="permalink" href="#pmap_resident_count"><code class="Fn" id="pmap_resident_count">pmap_resident_count</code></a>()
and
<a class="permalink" href="#pmap_wired_count"><code class="Fn" id="pmap_wired_count">pmap_wired_count</code></a>()
macros allow <code class="Nm">pmap</code> consumers to retrieve statistics
from the <var class="Va">pm_stats</var> member of the machine-dependent
structure <var class="Vt">struct pmap</var>.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="IMPLEMENTATION_NOTES"><a class="permalink" href="#IMPLEMENTATION_NOTES">IMPLEMENTATION
NOTES</a></h1>
<p class="Pp">Both functions are defined as in-line macros. The members which
they access have type <var class="Vt">long</var>.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
VALUES</a></h1>
<p class="Pp">The <code class="Fn">pmap_resident_count</code>() returns the
number of pages in the physical map <var class="Va">pmap</var> which are
currently resident in main memory.</p>
<p class="Pp">The <code class="Fn">pmap_wired_count</code>() returns the number
of pages in the physical map <var class="Va">pmap</var> which are currently
wired into in main memory.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
ALSO</a></h1>
<p class="Pp"><a class="Xr">pmap(9)</a></p>
</section>
<section class="Sh">
<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
<p class="Pp">This manual page was written by <span class="An">Bruce M
Simpson</span>
<<a class="Mt" href="mailto:bms@spc.org">bms@spc.org</a>>.</p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">July 21, 2003</td>
<td class="foot-os">FreeBSD 15.0</td>
</tr>
</table>
|