Back to Darwin Xnu

HD Memory Manager

osfmk/man/HD_memory_manager.html

latest1.2 KB
Original Source

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.

Functions: memory_object_create, vm_allocate.