1*e13b1fa5SApple OSS Distributions<h2>host_default_memory_manager</h2>
2*e13b1fa5SApple OSS Distributions<hr>
3*e13b1fa5SApple OSS Distributions<p>
4*e13b1fa5SApple OSS Distributions<strong>Function</strong> - Establish the official connection between the kernel and its default pager task.
5*e13b1fa5SApple OSS Distributions<h3>SYNOPSIS</h3>
6*e13b1fa5SApple OSS Distributions<pre>
7*e13b1fa5SApple OSS Distributions<strong>kern_return_t   host_default_memory_manager</strong>
8*e13b1fa5SApple OSS Distributions                <strong>(host_priv_t</strong>                          <var>host_priv</var>,
9*e13b1fa5SApple OSS Distributions                 <strong>mach_port_make_send_t</strong>          <var>default_manager</var>,
10*e13b1fa5SApple OSS Distributions                 <strong>vm_size_t</strong>                         <var>cluster_size</var><strong>);</strong>
11*e13b1fa5SApple OSS Distributions</pre>
12*e13b1fa5SApple OSS Distributions<h3>PARAMETERS</h3>
13*e13b1fa5SApple OSS Distributions<dl>
14*e13b1fa5SApple OSS Distributions<p>
15*e13b1fa5SApple OSS Distributions<dt> <var>host_priv</var>
16*e13b1fa5SApple OSS Distributions<dd>
17*e13b1fa5SApple OSS Distributions[in host-control send right]
18*e13b1fa5SApple OSS DistributionsThe control port naming the host for which
19*e13b1fa5SApple OSS Distributionsthe default memory manager is to be set.
20*e13b1fa5SApple OSS Distributions<p>
21*e13b1fa5SApple OSS Distributions<dt> <var>default_manager</var>
22*e13b1fa5SApple OSS Distributions<dd>
23*e13b1fa5SApple OSS Distributions[pointer to in/out default-pager send right]
24*e13b1fa5SApple OSS DistributionsA memory manager port to
25*e13b1fa5SApple OSS Distributionsthe new default memory manager.  If this value is <strong>MACH_PORT_NULL</strong>,
26*e13b1fa5SApple OSS Distributionsthe old memory manager is not changed.  The old memory
27*e13b1fa5SApple OSS Distributionsmanager port is returned in this variable.
28*e13b1fa5SApple OSS Distributions<p>
29*e13b1fa5SApple OSS Distributions<dt> <var>cluster_size</var>
30*e13b1fa5SApple OSS Distributions<dd>
31*e13b1fa5SApple OSS Distributions[in scalar]
32*e13b1fa5SApple OSS DistributionsThe preferred cluster size (in bytes) for temporary memory
33*e13b1fa5SApple OSS Distributionsobjects.
34*e13b1fa5SApple OSS Distributions</dl>
35*e13b1fa5SApple OSS Distributions<h3>DESCRIPTION</h3>
36*e13b1fa5SApple OSS Distributions<p>
37*e13b1fa5SApple OSS DistributionsThe <strong>host_default_memory_manager</strong> function establishes the default
38*e13b1fa5SApple OSS Distributionsmemory manager for a host.  The named manager will be the target for future
39*e13b1fa5SApple OSS Distributions<strong>memory_object_create</strong> calls.
40*e13b1fa5SApple OSS Distributions<h3>RETURN VALUES</h3>
41*e13b1fa5SApple OSS Distributions<p>
42*e13b1fa5SApple OSS DistributionsOnly generic errors apply.
43*e13b1fa5SApple OSS Distributions<h3>RELATED INFORMATION</h3>
44*e13b1fa5SApple OSS Distributions<p>
45*e13b1fa5SApple OSS DistributionsFunctions:
46*e13b1fa5SApple OSS Distributions<a href="memory_object_create.html"><strong>memory_object_create</strong></a>,
47*e13b1fa5SApple OSS Distributions<a href="vm_allocate.html"><strong>vm_allocate</strong></a>.
48