PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
thfpool.h File Reference
#include <types.h>
#include <irx.h>
+ Include dependency graph for thfpool.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
 

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)
 

Typedefs

typedef struct _iop_fpl_param iop_fpl_param
 
typedef struct _iop_fpl_info iop_fpl_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)
 

Detailed Description

Fixed-length memory pool management

Definition in file thfpool.h.


Data Structure Documentation

◆ _iop_fpl_param

struct _iop_fpl_param

Definition at line 35 of file thfpool.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 thfpool.h.

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

Macro Definition Documentation

◆ FA_THFIFO

#define FA_THFIFO   0x000

Definition at line 27 of file thfpool.h.

◆ FA_THPRI

#define FA_THPRI   0x001

Definition at line 28 of file thfpool.h.

◆ FA_MEMBTM

#define FA_MEMBTM   0x200

Definition at line 29 of file thfpool.h.

◆ thfpool_IMPORTS_start

#define thfpool_IMPORTS_start   DECLARE_IMPORT_TABLE(thfpool, 1, 1)

Definition at line 63 of file thfpool.h.

◆ thfpool_IMPORTS_end

#define thfpool_IMPORTS_end   END_IMPORT_TABLE

Definition at line 64 of file thfpool.h.

◆ I_CreateFpl

#define I_CreateFpl   DECLARE_IMPORT(4, CreateFpl)

Definition at line 66 of file thfpool.h.

◆ I_DeleteFpl

#define I_DeleteFpl   DECLARE_IMPORT(5, DeleteFpl)

Definition at line 67 of file thfpool.h.

◆ I_AllocateFpl

#define I_AllocateFpl   DECLARE_IMPORT(6, AllocateFpl)

Definition at line 68 of file thfpool.h.

◆ I_pAllocateFpl

#define I_pAllocateFpl   DECLARE_IMPORT(7, pAllocateFpl)

Definition at line 69 of file thfpool.h.

◆ I_ipAllocateFpl

#define I_ipAllocateFpl   DECLARE_IMPORT(8, ipAllocateFpl)

Definition at line 70 of file thfpool.h.

◆ I_FreeFpl

#define I_FreeFpl   DECLARE_IMPORT(9, FreeFpl)

Definition at line 71 of file thfpool.h.

◆ I_ReferFplStatus

#define I_ReferFplStatus   DECLARE_IMPORT(11, ReferFplStatus)

Definition at line 72 of file thfpool.h.

◆ I_iReferFplStatus

#define I_iReferFplStatus   DECLARE_IMPORT(12, iReferFplStatus)

Definition at line 73 of file thfpool.h.

Function Documentation

◆ CreateFpl()

int CreateFpl ( iop_fpl_param param)
extern

Definition at line 10 of file thfpool.c.

◆ DeleteFpl()

int DeleteFpl ( int  fplId)
extern

Definition at line 67 of file thfpool.c.

◆ AllocateFpl()

void * AllocateFpl ( int  fplId)
extern

Definition at line 107 of file thfpool.c.

◆ pAllocateFpl()

void * pAllocateFpl ( int  fplId)
extern

Definition at line 152 of file thfpool.c.

◆ ipAllocateFpl()

void * ipAllocateFpl ( int  fplId)
extern

Definition at line 181 of file thfpool.c.

◆ FreeFpl()

int FreeFpl ( int  fplId,
void *  memory 
)
extern

Definition at line 201 of file thfpool.c.

◆ ReferFplStatus()

int ReferFplStatus ( int  fplId,
iop_fpl_info_t info 
)
extern

Definition at line 237 of file thfpool.c.

◆ iReferFplStatus()

int iReferFplStatus ( int  fplId,
iop_fpl_info_t info 
)
extern

Definition at line 260 of file thfpool.c.