MEMAddBlockHeapTracking

Syntax

#include <cafe/mem.h>

int MEMAddBlockHeapTracking(
    		MEMHeapHandle heap, 
    		void *        track_mem, 
    		u32           track_mem_bytes 
    		);

Parameters

heap Block heap handle.
track_mem Pointer to memory to use for the group of tracking blocks.
track_mem_bytes Size in bytes of memory of the group of tracking blocks.

Return Values

Zero is returned if the function is successful. Otherwise, if invalid arguments are used, a negative integer value is returned.

Description

Adds a group of tracking blocks to a block heap so that more allocations may occur. The memory for the group is in use until the block heap is destroyed. There is no automatic management or cleanup of the memory used for the group.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

MEMAllocFromBlockHeap
MEMAllocFromBlockHeapAt
MEMAllocFromBlockHeapEx
MEMDestroyBlockHeap
MEMFreeToBlockHeap
MEMGetTrackingLeftInBlockHeap
MEMInitBlockHeap

Revision History

2013/05/08 Automated cleanup pass.
2010/11/01 Initial version.


CONFIDENTIAL