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