NNS_FndVisitAllocatedForExpHeap

Syntax

#include <nnsys/fnd.h>
void NNS_FndVisitAllocatedForExpHeap(
         NNSFndHeapHandle    heap,
         NNSFndHeapVisitor   visitor,
         u32                 userParam);

Arguments

heap Expanded heap handle
visitor Function called for each memory block
userParam User-designated parameters passed to the visitor function

Return Values

None.

Description

Causes the user-specified visitor function to be called for all memory blocks allocated from the expanded heap.

The visitor type NNSFndHeapVisitor is defined in the following manner:

typedef void (*NNSFndHeapVisitor)(
                 void*               memBlock,
                 NNSFndHeapHandle    heap,
                 u32                 userParam);

The first argument (memBlock) is the pointer to the memory block. The second argument (heap) is the heap handle that allocated the memory block. The third argument (userParam) is the value set with userParam passed as–is, and an optional value can be passed.

The order for the memory block called by the visitor function is the order of allocation.

See Also

NNS_FndAllocFromExpHeap, NNS_FndAllocFromExpHeapEx, NNS_FndCreateExpHeap, NNS_FndCreateExpHeapEx

Revision History

2004/10/15 Corrected the heading of "See Also."
2004/04/01 Initial version.


CONFIDENTIAL