OSGetMemBound

Syntax

#include <cafe/os.h>

typedef enum _osMemType
{
    OSMem_MEM1=1,
    OSMem_MEM2=2
} OSMemType;

int OSGetMemBound(OSMemType memType, u32 *apRetStart, u32 *apRetSizeBytes);

Parameters


memType Memory arena whose bounds are being requested (OSMem_MEM1 or OSMem_MEM2).
apRetStart Pointer to u32 that receives the start address of the requested memory area.
apRetSizeBytes Pointer to u32 that receives the size in bytes of the requested memory area.

Return Values

Returns an error code if the specified memType is not valid or not known.

Description

Retrieves the maximum bounds of a memory arena, regardless of any heaps in use in that arena.

Do Not Call From

None.

See Also

Basic Memory Allocation
OSGetPageSize
OSGetMapVirtAddrRange
OSGetDataPhysAddrRange
OSGetAvailPhysAddrRange
OSAllocVirtAddr
OSFreeVirtAddr
OSMapMemory
OSUnmapMemory

Revision History

2013-05-08 Automated cleanup pass.
2011-12-01 Initial version.


CONFIDENTIAL