PS2SDK
PS2 Homebrew Libraries
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]