SSBM Decomp
Loading...
Searching...
No Matches
OSAlloc.h File Reference
#include <dolphin/types.h>

Go to the source code of this file.

Macros

#define OSAlloc(size)
#define OSFree(ptr)

Typedefs

typedef int OSHeapHandle

Functions

void * OSAllocFromHeap (int heap, unsigned long 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)
long OSCheckHeap (int heap)
unsigned long OSReferentSize (void *ptr)
void OSDumpHeap (int heap)
void OSVisitAllocated (void(*visitor)(void *, unsigned long))

Variables

volatile OSHeapHandle __OSCurrHeap

Macro Definition Documentation

◆ OSAlloc

#define OSAlloc ( size)
Value:
volatile OSHeapHandle __OSCurrHeap
void * OSAllocFromHeap(int heap, unsigned long size)

◆ OSFree

#define OSFree ( ptr)
Value:
void OSFreeToHeap(int heap, void *ptr)

Typedef Documentation

◆ OSHeapHandle

typedef int OSHeapHandle

Function Documentation

◆ OSAllocFromHeap()

void * OSAllocFromHeap ( int heap,
unsigned long size )

◆ OSAllocFixed()

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

◆ OSFreeToHeap()

void OSFreeToHeap ( int heap,
void * ptr )

◆ OSSetCurrentHeap()

int OSSetCurrentHeap ( int heap)

◆ OSInitAlloc()

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

◆ OSCreateHeap()

int OSCreateHeap ( void * start,
void * end )

◆ OSDestroyHeap()

void OSDestroyHeap ( int heap)

◆ OSAddToHeap()

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

◆ OSCheckHeap()

long OSCheckHeap ( int heap)

◆ OSReferentSize()

unsigned long OSReferentSize ( void * ptr)

◆ OSDumpHeap()

void OSDumpHeap ( int heap)

◆ OSVisitAllocated()

void OSVisitAllocated ( void(* visitor )(void *, unsigned long))

Variable Documentation

◆ __OSCurrHeap

volatile OSHeapHandle __OSCurrHeap
extern