xref: /xnu-10002.61.3/osfmk/man/VSD_memory_manager.html (revision 0f4c859e951fba394238ab619495c4e1d54d0f34)
1*0f4c859eSApple OSS Distributions<h2>vm_set_default_memory_manager</h2>
2*0f4c859eSApple OSS Distributions<hr>
3*0f4c859eSApple OSS Distributions<p>
4*0f4c859eSApple OSS Distributions<strong>Function</strong> - Obsolete interface.  Functionality now provided via host_set_default_memory_manager interface.<h3>SYNOPSIS</h3>
5*0f4c859eSApple OSS Distributions<pre>
6*0f4c859eSApple OSS Distributions<strong>kern_return_t   vm_set_default_memory_manager</strong>
7*0f4c859eSApple OSS Distributions                <strong>(host_priv_t</strong>                          <var>host_priv</var>,
8*0f4c859eSApple OSS Distributions                 <strong>mach_port_move_send_t</strong>          <var>default_manager</var><strong>);</strong>
9*0f4c859eSApple OSS Distributions</pre>
10*0f4c859eSApple OSS Distributions<h3>PARAMETERS</h3>
11*0f4c859eSApple OSS Distributions<dl>
12*0f4c859eSApple OSS Distributions<p>
13*0f4c859eSApple OSS Distributions<dt> <var>host_priv</var>
14*0f4c859eSApple OSS Distributions<dd>
15*0f4c859eSApple OSS Distributions[in host-control send right]
16*0f4c859eSApple OSS DistributionsThe control port naming the host for which
17*0f4c859eSApple OSS Distributionsthe default memory manager is to be set.
18*0f4c859eSApple OSS Distributions<p>
19*0f4c859eSApple OSS Distributions<dt> <var>default_manager</var>
20*0f4c859eSApple OSS Distributions<dd>
21*0f4c859eSApple OSS Distributions[pointer to in/out default-pager send right]
22*0f4c859eSApple OSS DistributionsA memory manager port to
23*0f4c859eSApple OSS Distributionsthe new default memory manager.  If this value is <strong>MACH_PORT_NULL</strong>,
24*0f4c859eSApple OSS Distributionsthe old memory manager is not changed.  The old memory
25*0f4c859eSApple OSS Distributionsmanager port is returned in this variable.
26*0f4c859eSApple OSS Distributions</dl>
27*0f4c859eSApple OSS Distributions<h3>DESCRIPTION</h3>
28*0f4c859eSApple OSS Distributions<p>
29*0f4c859eSApple OSS DistributionsThe <strong>vm_set_default_memory_manager</strong> function establishes the default
30*0f4c859eSApple OSS Distributionsmemory manager for a host.  The named manager will be the target for future
31*0f4c859eSApple OSS Distributions<strong>memory_object_create</strong> calls.
32*0f4c859eSApple OSS Distributions<h3>NOTES</h3>
33*0f4c859eSApple OSS DistributionsThe <strong>vm_set_default_memory_manager</strong> interface has been
34*0f4c859eSApple OSS Distributionsrenamed to <strong>host_default_memory_manager</strong>.  The old
35*0f4c859eSApple OSS Distributions<strong>vm_set_default_memory_manager</strong> interface has been retained
36*0f4c859eSApple OSS Distributionsfor backward compatibility, without the <var>cluster_size</var> parameter.
37*0f4c859eSApple OSS Distributions<h3>RETURN VALUES</h3>
38*0f4c859eSApple OSS Distributions<p>
39*0f4c859eSApple OSS DistributionsOnly generic errors apply.
40*0f4c859eSApple OSS Distributions<h3>RELATED INFORMATION</h3>
41*0f4c859eSApple OSS Distributions<p>
42*0f4c859eSApple OSS DistributionsFunctions:
43*0f4c859eSApple OSS Distributions<a href="memory_object_create.html"><strong>memory_object_create</strong></a>,
44*0f4c859eSApple OSS Distributions<a href="vm_allocate.html"><strong>vm_allocate</strong></a>.
45