sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
thvpool.h File Reference
#include <types.h>
#include <irx.h>

Go to the source code of this file.

Classes

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.

Macro Definition Documentation

◆ I_AllocateVpl

#define I_AllocateVpl   DECLARE_IMPORT(6, AllocateVpl)

Definition at line 67 of file thvpool.h.

◆ I_CreateVpl

#define I_CreateVpl   DECLARE_IMPORT(4, CreateVpl)

Definition at line 65 of file thvpool.h.

◆ I_DeleteVpl

#define I_DeleteVpl   DECLARE_IMPORT(5, DeleteVpl)

Definition at line 66 of file thvpool.h.

◆ I_FreeVpl

#define I_FreeVpl   DECLARE_IMPORT(9, FreeVpl)

Definition at line 70 of file thvpool.h.

◆ I_ipAllocateVpl

#define I_ipAllocateVpl   DECLARE_IMPORT(8, ipAllocateVpl)

Definition at line 69 of file thvpool.h.

◆ I_iReferVplStatus

#define I_iReferVplStatus   DECLARE_IMPORT(12, iReferVplStatus)

Definition at line 72 of file thvpool.h.

◆ I_pAllocateVpl

#define I_pAllocateVpl   DECLARE_IMPORT(7, pAllocateVpl)

Definition at line 68 of file thvpool.h.

◆ I_ReferVplStatus

#define I_ReferVplStatus   DECLARE_IMPORT(11, ReferVplStatus)

Definition at line 71 of file thvpool.h.

◆ thvpool_IMPORTS_end

#define thvpool_IMPORTS_end   END_IMPORT_TABLE

Definition at line 63 of file thvpool.h.

◆ thvpool_IMPORTS_start

#define thvpool_IMPORTS_start   DECLARE_IMPORT_TABLE(thvpool, 1, 1)

Definition at line 62 of file thvpool.h.

◆ VA_MEMBTM

#define VA_MEMBTM   0x200

Definition at line 34 of file thvpool.h.

◆ VA_THFIFO

#define VA_THFIFO   0x000

Definition at line 32 of file thvpool.h.

◆ VA_THPRI

#define VA_THPRI   0x001

Definition at line 33 of file thvpool.h.

Function Documentation

◆ AllocateVpl()

void * AllocateVpl ( int vplId,
int size )
extern

Definition at line 87 of file thvpool.c.

◆ CreateVpl()

int CreateVpl ( iop_vpl_param * param)
extern

Definition at line 9 of file thvpool.c.

◆ DeleteVpl()

int DeleteVpl ( int vplId)
extern

Definition at line 47 of file thvpool.c.

◆ FreeVpl()

int FreeVpl ( int vplId,
void * memory )
extern

Definition at line 190 of file thvpool.c.

◆ ipAllocateVpl()

void * ipAllocateVpl ( int vplId,
int size )
extern

Definition at line 168 of file thvpool.c.

◆ iReferVplStatus()

int iReferVplStatus ( int vplId,
iop_vpl_info_t * info )
extern

Definition at line 256 of file thvpool.c.

◆ pAllocateVpl()

void * pAllocateVpl ( int vplId,
int size )
extern

Definition at line 136 of file thvpool.c.

◆ ReferVplStatus()

int ReferVplStatus ( int vplId,
iop_vpl_info_t * info )
extern

Definition at line 233 of file thvpool.c.