blob: 92f57ee4a60ea4c89d887309c29971c37a9a342c (
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
|
<table class="head">
<tr>
<td class="head-ltitle">VM_PAGE_RENAME(9)</td>
<td class="head-vol">Kernel Developer's Manual</td>
<td class="head-rtitle">VM_PAGE_RENAME(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">vm_page_rename</code> —
<span class="Nd">move a page</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/vm_page.h</a>></code></p>
<p class="Pp"><var class="Ft">void</var>
<br/>
<code class="Fn">vm_page_rename</code>(<var class="Fa">vm_page_t m</var>,
<var class="Fa">vm_object_t new_object</var>, <var class="Fa">vm_pindex_t
new_pindex</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="#vm_page_rename"><code class="Fn" id="vm_page_rename">vm_page_rename</code></a>()
function removes a page from one object, and adds it to another at the given
page index. The page is added to the given object, and is removed from the
object that is currently associated with. If the page is currently on the
cache queue it will be deactivated unless it is wired or unmanaged, in which
case the deactivation will fail. The entire page is marked as dirty after
the move.</p>
<p class="Pp" id="vm_page_rename~2">The arguments to
<a class="permalink" href="#vm_page_rename~2"><code class="Fn">vm_page_rename</code></a>()
are:</p>
<dl class="Bl-tag">
<dt><var class="Fa">m</var></dt>
<dd>The page to move.</dd>
<dt><var class="Fa">new_object</var></dt>
<dd>The object the page should be inserted into.</dd>
<dt><var class="Fa">new_pindex</var></dt>
<dd>The page index into <var class="Fa">new_object</var> at which the new page
should be inserted.</dd>
</dl>
</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">Chad David</span>
<<a class="Mt" href="mailto:davidc@acns.ab.ca">davidc@acns.ab.ca</a>>.</p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">July 17, 2001</td>
<td class="foot-os">FreeBSD 15.0</td>
</tr>
</table>
|