## host_default_memory_manager

Function - Establish the official connection between the kernel and its default pager task.

### SYNOPSIS

    kern_return_t   host_default_memory_manager
                    (host_priv_t                          host_priv,
                     mach_port_make_send_t          default_manager,
                     vm_size_t                         cluster_size);

### PARAMETERS

host_priv
  [in host-control send right] The control port naming the host for which the default memory manager is to be set.

default_manager
  [pointer to in/out default-pager send right] A memory manager port to the new default memory manager. If this value is MACH_PORT_NULL, the old memory manager is not changed. The old memory manager port is returned in this variable.

cluster_size
  [in scalar] The preferred cluster size (in bytes) for temporary memory objects.

### DESCRIPTION

The host_default_memory_manager function establishes the default memory manager for a host. The named manager will be the target for future memory_object_create calls.

### RETURN VALUES

Only generic errors apply.

### RELATED INFORMATION

Functions: memory_object_create, vm_allocate.