StackMemory

nn::os::StackMemory::StackMemory Constructor

Syntax

explicit StackMemory(
     void * pMem,
     size_t size
);

Parameters

Name Description
in pMem Pointer to the beginning of the memory region to partition. Must be 4096-byte aligned.
in size Size of memory region to partition. The size argument must be a multiple of 4096.

Description

Constructs an object and partitions a memory region.

Internally calls the Initialize function.

For this reason, this function can only partition memory allocated from the heap region. It cannot partition buffers allocated statically from the code region, and it cannot partition regions in device memory.

See Initialize for details.

Revision History

2011/12/19
Noted that memory must be allocated from the heap region.
2010/08/18
Initial version.

CONFIDENTIAL