PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
alloc.h File Reference
#include <types.h>
#include <irx.h>
+ Include dependency graph for alloc.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define alloc_IMPORTS_start   DECLARE_IMPORT_TABLE(alloc, 1, 1)
 
#define alloc_IMPORTS_end   END_IMPORT_TABLE
 
#define I_malloc   DECLARE_IMPORT(4, malloc)
 
#define I_realloc   DECLARE_IMPORT(5, realloc)
 
#define I_free   DECLARE_IMPORT(6, free)
 
#define I_calloc   DECLARE_IMPORT(7, calloc)
 
#define I_memalign   DECLARE_IMPORT(8, memalign)
 
#define I___mem_walk_begin   DECLARE_IMPORT(9, __mem_walk_begin)
 
#define I___mem_walk_read   DECLARE_IMPORT(10, __mem_walk_read)
 
#define I___mem_walk_inc   DECLARE_IMPORT(11, __mem_walk_inc)
 
#define I___mem_walk_end   DECLARE_IMPORT(12, __mem_walk_end)
 

Functions

void * malloc (size_t size)
 
void * realloc (void *ptr, size_t size)
 
void free (void *ptr)
 
void * calloc (size_t n, size_t size)
 
void * memalign (size_t align, size_t size)
 
void * __mem_walk_begin ()
 
void __mem_walk_read (void *token, u32 *size, void **ptr, int *valid)
 
void * __mem_walk_inc (void *token)
 
int __mem_walk_end (void *token)
 

Detailed Description

Basic alloc library

Definition in file alloc.h.

Macro Definition Documentation

◆ alloc_IMPORTS_start

#define alloc_IMPORTS_start   DECLARE_IMPORT_TABLE(alloc, 1, 1)

Definition at line 32 of file alloc.h.

◆ alloc_IMPORTS_end

#define alloc_IMPORTS_end   END_IMPORT_TABLE

Definition at line 33 of file alloc.h.

◆ I_malloc

#define I_malloc   DECLARE_IMPORT(4, malloc)

Definition at line 35 of file alloc.h.

◆ I_realloc

#define I_realloc   DECLARE_IMPORT(5, realloc)

Definition at line 36 of file alloc.h.

◆ I_free

#define I_free   DECLARE_IMPORT(6, free)

Definition at line 37 of file alloc.h.

◆ I_calloc

#define I_calloc   DECLARE_IMPORT(7, calloc)

Definition at line 38 of file alloc.h.

◆ I_memalign

#define I_memalign   DECLARE_IMPORT(8, memalign)

Definition at line 39 of file alloc.h.

◆ I___mem_walk_begin

#define I___mem_walk_begin   DECLARE_IMPORT(9, __mem_walk_begin)

Definition at line 40 of file alloc.h.

◆ I___mem_walk_read

#define I___mem_walk_read   DECLARE_IMPORT(10, __mem_walk_read)

Definition at line 41 of file alloc.h.

◆ I___mem_walk_inc

#define I___mem_walk_inc   DECLARE_IMPORT(11, __mem_walk_inc)

Definition at line 42 of file alloc.h.

◆ I___mem_walk_end

#define I___mem_walk_end   DECLARE_IMPORT(12, __mem_walk_end)

Definition at line 43 of file alloc.h.

Function Documentation

◆ malloc()

void * malloc ( size_t size)
extern

Definition at line 144 of file alloc.c.

◆ realloc()

void * realloc ( void * ptr,
size_t size )
extern

Definition at line 242 of file alloc.c.

◆ free()

void free ( void * ptr)
extern

Definition at line 59 of file main.c.

◆ calloc()

void * calloc ( size_t n,
size_t size )
extern

Definition at line 309 of file alloc.c.

◆ memalign()

void * memalign ( size_t align,
size_t size )
extern

Definition at line 321 of file alloc.c.

◆ __mem_walk_begin()

void * __mem_walk_begin ( )
extern

Definition at line 439 of file alloc.c.

◆ __mem_walk_read()

void __mem_walk_read ( void * token,
u32 * size,
void ** ptr,
int * valid )
extern

Definition at line 443 of file alloc.c.

◆ __mem_walk_inc()

void * __mem_walk_inc ( void * token)
extern

Definition at line 452 of file alloc.c.

◆ __mem_walk_end()

int __mem_walk_end ( void * token)
extern

Definition at line 458 of file alloc.c.