Loading [MathJax]/extensions/tex2jax.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
OSAlloc.c File Reference

Classes

struct  Cell
 
struct  HeapDesc
 

Typedefs

typedef struct Cell Cell
 
typedef struct HeapDesc HeapDesc
 

Functions

static CellDLAddFront (Cell *list, Cell *cell)
 
static CellDLLookup (Cell *list, Cell *cell)
 
static CellDLExtract (Cell *list, Cell *cell)
 
static CellDLInsert (Cell *list, Cell *cell)
 
static int DLOverlap (Cell *list, void *start, void *end)
 
static s32 DLSize (Cell *list)
 
void * OSAllocFromHeap (int heap, u32 size)
 
void * OSAllocFixed (void *rstart, void *rend)
 
void OSFreeToHeap (int heap, void *ptr)
 
int OSSetCurrentHeap (int heap)
 
void * OSInitAlloc (void *arenaStart, void *arenaEnd, int maxHeaps)
 
int OSCreateHeap (void *start, void *end)
 
void OSDestroyHeap (int heap)
 
void OSAddToHeap (int heap, void *start, void *end)
 
s32 OSCheckHeap (int heap)
 
u32 OSReferentSize (void *ptr)
 
void OSDumpHeap (int heap)
 
void OSVisitAllocated (void(*visitor)(void *, u32))
 

Variables

volatile int __OSCurrHeap = -1
 
static HeapDescHeapArray
 
static int NumHeaps
 
static void * ArenaStart
 
static void * ArenaEnd
 

Typedef Documentation

◆ Cell

typedef struct Cell Cell

◆ HeapDesc

typedef struct HeapDesc HeapDesc

Function Documentation

◆ DLAddFront()

static Cell * DLAddFront ( Cell * list,
Cell * cell )
static

◆ DLExtract()

static Cell * DLExtract ( Cell * list,
Cell * cell )
static

◆ DLInsert()

static Cell * DLInsert ( Cell * list,
Cell * cell )
static

◆ DLLookup()

static Cell * DLLookup ( Cell * list,
Cell * cell )
static

◆ DLOverlap()

static int DLOverlap ( Cell * list,
void * start,
void * end )
static

◆ DLSize()

static s32 DLSize ( Cell * list)
static

◆ OSAddToHeap()

void OSAddToHeap ( int heap,
void * start,
void * end )

◆ OSAllocFixed()

void * OSAllocFixed ( void * rstart,
void * rend )

◆ OSAllocFromHeap()

void * OSAllocFromHeap ( int heap,
u32 size )

◆ OSCheckHeap()

s32 OSCheckHeap ( int heap)

◆ OSCreateHeap()

int OSCreateHeap ( void * start,
void * end )

◆ OSDestroyHeap()

void OSDestroyHeap ( int heap)

◆ OSDumpHeap()

void OSDumpHeap ( int heap)

◆ OSFreeToHeap()

void OSFreeToHeap ( int heap,
void * ptr )

◆ OSInitAlloc()

void * OSInitAlloc ( void * arenaStart,
void * arenaEnd,
int maxHeaps )

◆ OSReferentSize()

u32 OSReferentSize ( void * ptr)

◆ OSSetCurrentHeap()

int OSSetCurrentHeap ( int heap)

◆ OSVisitAllocated()

void OSVisitAllocated ( void(* visitor )(void *, u32))

Variable Documentation

◆ __OSCurrHeap

volatile int __OSCurrHeap = -1

◆ ArenaEnd

void* ArenaEnd
static

◆ ArenaStart

void* ArenaStart
static

◆ HeapArray

HeapDesc* HeapArray
static

◆ NumHeaps

int NumHeaps
static