Guardian Programmer's Guide

Table Of Contents
Guardian Programmer’s Guide 421922-014
17 - 1
17
Managing Memory
An Introduction to Memory-Management
Procedures
The following system procedures are available for managing memory from your
application:
ADDRESS_DELIMIT_ Returns information about a particular area of the
user’s logical address space, including the
addresses of the first and last bytes in that area.
GETPOOL_PAGE Obtains a block of memory from a buffer pool.
HEADROOM_ENSURE_ Checks to make sure enough memory has been
allocated for a process’s main and priv stacks, and
allocates more memory as needed. Can be called
only from a native process.
MOVEX Transfers data from one selectable segment to
another.
POOL_CHECK_ Returns memory pool error information.
POOL_DEFINE_ Defines the bounds of a memory pool in an
extended data segment or in the user data segment
(TNS processes) or globals area (TNS/R native
processes).
POOL_GETINFO_ Returns information about a memory pool.
POOL_GETSPACE_ Obtains a block of storage from a memory pool.
POOL_GETSPACE_PAGE Obtains a block of memory from a buffer pool.
POOL_PUTSPACE_ Returns a block of storage to a memory pool.
POOL_RESIZE_ Changes the size of an existing memory pool.
PROCESS_CREATE_ In addition to creating a process, specifies the size
of the user data segment for a TNS process.
PROCESS_LAUNCH_ Same as PROCESS_CREATE_, but provides
additional parameters for specifying attributes
associated with native processes.
RESIZESEGMENT Changes the size of an existing data segment.
SEGMENT_ALLOCATE_ Allocates virtual memory space to an extended data
segment (a flat segment or a selectable segment).
SEGMENT_DEALLOCATE_ Deallocates an extended data segment.