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