PS2SDK
PS2 Homebrew Libraries
|
Go to the source code of this file.
Data Structures | |
struct | sysmem_alloc_element_ |
struct | sysmem_alloc_table_ |
struct | sysmem_internals_ |
Macros | |
#define | ALLOC_FIRST 0 |
#define | ALLOC_LAST 1 |
#define | ALLOC_ADDRESS 2 |
#define | USED 0x00000000 |
#define | FREE 0x80000000 |
#define | sysmem_IMPORTS_start DECLARE_IMPORT_TABLE(sysmem, 1, 1) |
#define | sysmem_IMPORTS_end END_IMPORT_TABLE |
#define | I_GetSysmemInternalData DECLARE_IMPORT(3, GetSysmemInternalData) |
#define | I_AllocSysMemory DECLARE_IMPORT(4, AllocSysMemory) |
#define | I_FreeSysMemory DECLARE_IMPORT(5, FreeSysMemory) |
#define | I_QueryMemSize DECLARE_IMPORT(6, QueryMemSize) |
#define | I_QueryMaxFreeMemSize DECLARE_IMPORT(7, QueryMaxFreeMemSize) |
#define | I_QueryTotalFreeMemSize DECLARE_IMPORT(8, QueryTotalFreeMemSize) |
#define | I_QueryBlockTopAddress DECLARE_IMPORT(9, QueryBlockTopAddress) |
#define | I_QueryBlockSize DECLARE_IMPORT(10, QueryBlockSize) |
#define | I_Kprintf DECLARE_IMPORT(14, Kprintf) |
#define | I_KprintfSet DECLARE_IMPORT(15, KprintfSet) |
Typedefs | |
typedef struct sysmem_alloc_element_ | sysmem_alloc_element_t |
typedef struct sysmem_alloc_table_ | sysmem_alloc_table_t |
typedef struct sysmem_internals_ | sysmem_internals_t |
typedef int() | KprintfHandler_t(void *context, const char *format, va_list ap) |
Functions | |
sysmem_internals_t * | GetSysmemInternalData (void) |
void * | AllocSysMemory (int mode, int size, void *ptr) |
int | FreeSysMemory (void *ptr) |
u32 | QueryMemSize () |
u32 | QueryMaxFreeMemSize () |
u32 | QueryTotalFreeMemSize () |
void * | QueryBlockTopAddress (void *address) |
int | QueryBlockSize (void *address) |
int | Kprintf (const char *format,...) |
void | KprintfSet (KprintfHandler_t *, void *context) |
System memory manager.
Definition in file sysmem.h.
struct sysmem_alloc_element_ |
Data Fields | ||
---|---|---|
struct sysmem_alloc_element_ * | next | |
unsigned int | info |
struct sysmem_alloc_table_ |
Data Fields | ||
---|---|---|
struct sysmem_alloc_table_ * | next | |
sysmem_alloc_element_t | list[31] | |
int | padding |
struct sysmem_internals_ |
Data Fields | ||
---|---|---|
int | memsize | |
sysmem_alloc_table_t * | alloclist | |
void * | intr_suspend_tbl | |
int | allocation_count | |
sysmem_alloc_table_t * | smemupdate_cur |
#define sysmem_IMPORTS_start DECLARE_IMPORT_TABLE(sysmem, 1, 1) |
#define I_GetSysmemInternalData DECLARE_IMPORT(3, GetSysmemInternalData) |
#define I_QueryMaxFreeMemSize DECLARE_IMPORT(7, QueryMaxFreeMemSize) |
#define I_QueryTotalFreeMemSize DECLARE_IMPORT(8, QueryTotalFreeMemSize) |
#define I_QueryBlockTopAddress DECLARE_IMPORT(9, QueryBlockTopAddress) |
typedef struct sysmem_internals_ sysmem_internals_t |
Sysmem internal data structure.
typedef int() KprintfHandler_t(void *context, const char *format, va_list ap) |
sysmem_internals_t * GetSysmemInternalData | ( | void | ) |