#include <nnsys/fnd.h>
u16 NNS_FndSetAllocModeForExpHeap(
NNSFndHeapHandle heap,
u16 mode);
heap | Expanded heap handle |
mode | Memory allocation mode (see below) |
Returns the memory allocation mode of the previous expanded heap.
This function sets the memory allocation mode of the expanded heap.
The memory allocation mode can be set with mode
.
NNS_FND_EXPHEAP_ALLOC_MODE_FIRST | Allocates a memory block from the first available empty region that is at least the size of the memory block to be allocated. |
NNS_FND_EXPHEAP_ALLOC_MODE_NEAR | Searches for the empty region nearest in size to the memory block to be allocated, then allocates the memory block from that empty region. |
Immediately after the heap is created, goes into the NNS_FND_EXPHEAP_ALLOC_MODE_FIRST
state.
2004/04/01 Initial version.
CONFIDENTIAL