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

Go to the source code of this file.

Data Structures

struct  _iop_fpl_param
 
struct  _iop_fpl_info
 
struct  _iop_vpl_param
 
struct  _iop_vpl_info
 

Macros

#define FA_THFIFO   0x000
 
#define FA_THPRI   0x001
 
#define FA_MEMBTM   0x200
 
#define thfpool_IMPORTS_start   DECLARE_IMPORT_TABLE(thfpool, 1, 1)
 
#define thfpool_IMPORTS_end   END_IMPORT_TABLE
 
#define I_CreateFpl   DECLARE_IMPORT(4, CreateFpl)
 
#define I_DeleteFpl   DECLARE_IMPORT(5, DeleteFpl)
 
#define I_AllocateFpl   DECLARE_IMPORT(6, AllocateFpl)
 
#define I_pAllocateFpl   DECLARE_IMPORT(7, pAllocateFpl)
 
#define I_ipAllocateFpl   DECLARE_IMPORT(8, ipAllocateFpl)
 
#define I_FreeFpl   DECLARE_IMPORT(9, FreeFpl)
 
#define I_ReferFplStatus   DECLARE_IMPORT(11, ReferFplStatus)
 
#define I_iReferFplStatus   DECLARE_IMPORT(12, iReferFplStatus)
 
#define VA_THFIFO   0x000
 
#define VA_THPRI   0x001
 
#define VA_MEMBTM   0x200
 
#define thvpool_IMPORTS_start   DECLARE_IMPORT_TABLE(thvpool, 1, 1)
 
#define thvpool_IMPORTS_end   END_IMPORT_TABLE
 
#define I_CreateVpl   DECLARE_IMPORT(4, CreateVpl)
 
#define I_DeleteVpl   DECLARE_IMPORT(5, DeleteVpl)
 
#define I_AllocateVpl   DECLARE_IMPORT(6, AllocateVpl)
 
#define I_pAllocateVpl   DECLARE_IMPORT(7, pAllocateVpl)
 
#define I_ipAllocateVpl   DECLARE_IMPORT(8, ipAllocateVpl)
 
#define I_FreeVpl   DECLARE_IMPORT(9, FreeVpl)
 
#define I_ReferVplStatus   DECLARE_IMPORT(11, ReferVplStatus)
 
#define I_iReferVplStatus   DECLARE_IMPORT(12, iReferVplStatus)
 

Typedefs

typedef struct _iop_fpl_param iop_fpl_param
 
typedef struct _iop_fpl_info iop_fpl_info_t
 
typedef struct _iop_vpl_param iop_vpl_param
 
typedef struct _iop_vpl_info iop_vpl_info_t
 

Functions

int CreateFpl (iop_fpl_param *param)
 
int DeleteFpl (int fplId)
 
void * AllocateFpl (int fplId)
 
void * pAllocateFpl (int fplId)
 
void * ipAllocateFpl (int fplId)
 
int FreeFpl (int fplId, void *memory)
 
int ReferFplStatus (int fplId, iop_fpl_info_t *info)
 
int iReferFplStatus (int fplId, iop_fpl_info_t *info)
 
int CreateVpl (iop_vpl_param *param)
 
int DeleteVpl (int vplId)
 
void * AllocateVpl (int vplId, int size)
 
void * pAllocateVpl (int vplId, int size)
 
void * ipAllocateVpl (int vplId, int size)
 
int FreeVpl (int vplId, void *memory)
 
int ReferVplStatus (int vplId, iop_vpl_info_t *info)
 
int iReferVplStatus (int vplId, iop_vpl_info_t *info)
 

Detailed Description

Memory pool management

Definition in file thpool.h.


Data Structure Documentation

◆ _iop_fpl_param

struct _iop_fpl_param

Definition at line 35 of file thpool.h.

Data Fields
unsigned int attr
unsigned int option
int block_size
int blocks

◆ _iop_fpl_info

struct _iop_fpl_info

Definition at line 43 of file thpool.h.

Data Fields
unsigned int attr
unsigned int option
int blockSize
int numBlocks
int freeBlocks
int numWaitThreads
int reserved[4]

◆ _iop_vpl_param

struct _iop_vpl_param

Definition at line 84 of file thpool.h.

Data Fields
unsigned int attr
unsigned int option
int size

◆ _iop_vpl_info

struct _iop_vpl_info

Definition at line 91 of file thpool.h.

Data Fields
unsigned int attr
unsigned int option
int size
int freeSize
int numWaitThreads
int reserved[3]

Macro Definition Documentation

◆ FA_THFIFO

#define FA_THFIFO   0x000

Definition at line 27 of file thpool.h.

◆ FA_THPRI

#define FA_THPRI   0x001

Definition at line 28 of file thpool.h.

◆ FA_MEMBTM

#define FA_MEMBTM   0x200

Definition at line 29 of file thpool.h.

◆ thfpool_IMPORTS_start

#define thfpool_IMPORTS_start   DECLARE_IMPORT_TABLE(thfpool, 1, 1)

Definition at line 63 of file thpool.h.

◆ thfpool_IMPORTS_end

#define thfpool_IMPORTS_end   END_IMPORT_TABLE

Definition at line 64 of file thpool.h.

◆ I_CreateFpl

#define I_CreateFpl   DECLARE_IMPORT(4, CreateFpl)

Definition at line 66 of file thpool.h.

◆ I_DeleteFpl

#define I_DeleteFpl   DECLARE_IMPORT(5, DeleteFpl)

Definition at line 67 of file thpool.h.

◆ I_AllocateFpl

#define I_AllocateFpl   DECLARE_IMPORT(6, AllocateFpl)

Definition at line 68 of file thpool.h.

◆ I_pAllocateFpl

#define I_pAllocateFpl   DECLARE_IMPORT(7, pAllocateFpl)

Definition at line 69 of file thpool.h.

◆ I_ipAllocateFpl

#define I_ipAllocateFpl   DECLARE_IMPORT(8, ipAllocateFpl)

Definition at line 70 of file thpool.h.

◆ I_FreeFpl

#define I_FreeFpl   DECLARE_IMPORT(9, FreeFpl)

Definition at line 71 of file thpool.h.

◆ I_ReferFplStatus

#define I_ReferFplStatus   DECLARE_IMPORT(11, ReferFplStatus)

Definition at line 72 of file thpool.h.

◆ I_iReferFplStatus

#define I_iReferFplStatus   DECLARE_IMPORT(12, iReferFplStatus)

Definition at line 73 of file thpool.h.

◆ VA_THFIFO

#define VA_THFIFO   0x000

Definition at line 80 of file thpool.h.

◆ VA_THPRI

#define VA_THPRI   0x001

Definition at line 81 of file thpool.h.

◆ VA_MEMBTM

#define VA_MEMBTM   0x200

Definition at line 82 of file thpool.h.

◆ thvpool_IMPORTS_start

#define thvpool_IMPORTS_start   DECLARE_IMPORT_TABLE(thvpool, 1, 1)

Definition at line 110 of file thpool.h.

◆ thvpool_IMPORTS_end

#define thvpool_IMPORTS_end   END_IMPORT_TABLE

Definition at line 111 of file thpool.h.

◆ I_CreateVpl

#define I_CreateVpl   DECLARE_IMPORT(4, CreateVpl)

Definition at line 113 of file thpool.h.

◆ I_DeleteVpl

#define I_DeleteVpl   DECLARE_IMPORT(5, DeleteVpl)

Definition at line 114 of file thpool.h.

◆ I_AllocateVpl

#define I_AllocateVpl   DECLARE_IMPORT(6, AllocateVpl)

Definition at line 115 of file thpool.h.

◆ I_pAllocateVpl

#define I_pAllocateVpl   DECLARE_IMPORT(7, pAllocateVpl)

Definition at line 116 of file thpool.h.

◆ I_ipAllocateVpl

#define I_ipAllocateVpl   DECLARE_IMPORT(8, ipAllocateVpl)

Definition at line 117 of file thpool.h.

◆ I_FreeVpl

#define I_FreeVpl   DECLARE_IMPORT(9, FreeVpl)

Definition at line 118 of file thpool.h.

◆ I_ReferVplStatus

#define I_ReferVplStatus   DECLARE_IMPORT(11, ReferVplStatus)

Definition at line 119 of file thpool.h.

◆ I_iReferVplStatus

#define I_iReferVplStatus   DECLARE_IMPORT(12, iReferVplStatus)

Definition at line 120 of file thpool.h.

Function Documentation

◆ CreateFpl()

int CreateFpl ( iop_fpl_param param)

Definition at line 10 of file thfpool.c.

◆ DeleteFpl()

int DeleteFpl ( int  fplId)

Definition at line 67 of file thfpool.c.

◆ AllocateFpl()

void * AllocateFpl ( int  fplId)

Definition at line 107 of file thfpool.c.

◆ pAllocateFpl()

void * pAllocateFpl ( int  fplId)

Definition at line 152 of file thfpool.c.

◆ ipAllocateFpl()

void * ipAllocateFpl ( int  fplId)

Definition at line 181 of file thfpool.c.

◆ FreeFpl()

int FreeFpl ( int  fplId,
void *  memory 
)

Definition at line 201 of file thfpool.c.

◆ ReferFplStatus()

int ReferFplStatus ( int  fplId,
iop_fpl_info_t info 
)

Definition at line 237 of file thfpool.c.

◆ iReferFplStatus()

int iReferFplStatus ( int  fplId,
iop_fpl_info_t info 
)

Definition at line 260 of file thfpool.c.

◆ CreateVpl()

int CreateVpl ( iop_vpl_param param)

Definition at line 9 of file thvpool.c.

◆ DeleteVpl()

int DeleteVpl ( int  vplId)

Definition at line 47 of file thvpool.c.

◆ AllocateVpl()

void * AllocateVpl ( int  vplId,
int  size 
)

Definition at line 87 of file thvpool.c.

◆ pAllocateVpl()

void * pAllocateVpl ( int  vplId,
int  size 
)

Definition at line 136 of file thvpool.c.

◆ ipAllocateVpl()

void * ipAllocateVpl ( int  vplId,
int  size 
)

Definition at line 168 of file thvpool.c.

◆ FreeVpl()

int FreeVpl ( int  vplId,
void *  memory 
)

Definition at line 190 of file thvpool.c.

◆ ReferVplStatus()

int ReferVplStatus ( int  vplId,
iop_vpl_info_t info 
)

Definition at line 233 of file thvpool.c.

◆ iReferVplStatus()

int iReferVplStatus ( int  vplId,
iop_vpl_info_t info 
)

Definition at line 256 of file thvpool.c.