OSAllocFromMEM2ArenaLo

C Specification

#include <revolution/os.h>
void* OSAllocFromMEM2ArenaLo(u32 size, u32 align);

Arguments

size Size of object to allocate.
align Object alignment and new arena boundary to set (must be a power of 2).

Return Values

A pointer to the allocated region that is aligned to a align-byte boundary. The new lower boundary of the arena is also set and aligned to an align-byte boundary.

Description

Allocates size bytes from the lower boundary of the arena in external main memory (MEM2 area). Extra memory from the arena may be consumed for the alignment (specified by align).

See Also

Arena Functions, OSAllocFromMEM1ArenaHi, OSAllocFromMEM1ArenaLo, OSAllocFromMEM2ArenaHi

Revision History

03/01/2006 Initial version.