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

Go to the source code of this file.

Data Structures

struct  _iop_vpl_param
 
struct  _iop_vpl_info
 

Macros

#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_vpl_param iop_vpl_param
 
typedef struct _iop_vpl_info iop_vpl_info_t
 

Functions

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

Variable-length memory pool management

Definition in file thvpool.h.


Data Structure Documentation

◆ _iop_vpl_param

struct _iop_vpl_param

Definition at line 35 of file thvpool.h.

Data Fields
unsigned int attr
unsigned int option
int size

◆ _iop_vpl_info

struct _iop_vpl_info

Definition at line 42 of file thvpool.h.

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