HD_memory_manager.html   [plain text]

<strong>Function</strong> - Establish the official connection between the kernel and its default pager task.
<strong>kern_return_t   host_default_memory_manager</strong>
                <strong>(host_priv_t</strong>                          <var>host_priv</var>,
                 <strong>mach_port_make_send_t</strong>          <var>default_manager</var>,
                 <strong>vm_size_t</strong>                         <var>cluster_size</var><strong>);</strong>
<dt> <var>host_priv</var> 
[in host-control send right]
The control port naming the host for which 
the default memory manager is to be set.
<dt> <var>default_manager</var> 
[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.
<dt> <var>cluster_size</var> 
[in scalar]
The preferred cluster size (in bytes) for temporary memory 
The <strong>host_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.
Only generic errors apply.
<a href="memory_object_create.html"><strong>memory_object_create</strong></a>,
<a href="vm_allocate.html"><strong>vm_allocate</strong></a>.