forked from apple/darwin-xnu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVSD_memory_manager.html
44 lines (44 loc) · 1.67 KB
/
VSD_memory_manager.html
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
<h2>vm_set_default_memory_manager</h2>
<hr>
<p>
<strong>Function</strong> - Obsolete interface. Functionality now provided via host_set_default_memory_manager interface.<h3>SYNOPSIS</h3>
<pre>
<strong>kern_return_t vm_set_default_memory_manager</strong>
<strong>(host_priv_t</strong> <var>host_priv</var>,
<strong>mach_port_move_send_t</strong> <var>default_manager</var><strong>);</strong>
</pre>
<h3>PARAMETERS</h3>
<dl>
<p>
<dt> <var>host_priv</var>
<dd>
[in host-control send right]
The control port naming the host for which
the default memory manager is to be set.
<p>
<dt> <var>default_manager</var>
<dd>
[pointer to in/out default-pager send right]
A memory manager port to
the new default memory manager. If this value is <strong>MACH_PORT_NULL</strong>,
the old memory manager is not changed. The old memory
manager port is returned in this variable.
</dl>
<h3>DESCRIPTION</h3>
<p>
The <strong>vm_set_default_memory_manager</strong> function establishes the default
memory manager for a host. The named manager will be the target for future
<strong>memory_object_create</strong> calls.
<h3>NOTES</h3>
The <strong>vm_set_default_memory_manager</strong> interface has been
renamed to <strong>host_default_memory_manager</strong>. The old
<strong>vm_set_default_memory_manager</strong> interface has been retained
for backward compatibility, without the <var>cluster_size</var> parameter.
<h3>RETURN VALUES</h3>
<p>
Only generic errors apply.
<h3>RELATED INFORMATION</h3>
<p>
Functions:
<a href="memory_object_create.html"><strong>memory_object_create</strong></a>,
<a href="vm_allocate.html"><strong>vm_allocate</strong></a>.