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

Go to the source code of this file.

Classes

struct  iop_mbx_t
struct  _iop_message
struct  _iop_mbx_status

Macros

#define MBA_THFIFO   0x000
#define MBA_THPRI   0x001
#define MBA_MSFIFO   0x000
#define MBA_MSPRI   0x004
#define thmsgbx_IMPORTS_start   DECLARE_IMPORT_TABLE(thmsgbx, 1, 1)
#define thmsgbx_IMPORTS_end   END_IMPORT_TABLE
#define I_CreateMbx   DECLARE_IMPORT(4, CreateMbx)
#define I_DeleteMbx   DECLARE_IMPORT(5, DeleteMbx)
#define I_SendMbx   DECLARE_IMPORT(6, SendMbx)
#define I_iSendMbx   DECLARE_IMPORT(7, iSendMbx)
#define I_ReceiveMbx   DECLARE_IMPORT(8, ReceiveMbx)
#define I_PollMbx   DECLARE_IMPORT(9, PollMbx)
#define I_ReferMbxStatus   DECLARE_IMPORT(11, ReferMbxStatus)
#define I_iReferMbxStatus   DECLARE_IMPORT(12, iReferMbxStatus)

Typedefs

typedef struct _iop_message iop_message_t
typedef struct _iop_mbx_status iop_mbx_status_t

Functions

int CreateMbx (iop_mbx_t *mbx)
int DeleteMbx (int mbxid)
int SendMbx (int mbxid, void *msg)
int iSendMbx (int mbxid, void *msg)
int ReceiveMbx (void **msgvar, int mbxid)
int PollMbx (void **msgvar, int mbxid)
int ReferMbxStatus (int mbxid, iop_mbx_status_t *info)
int iReferMbxStatus (int mbxid, iop_mbx_status_t *info)

Detailed Description

Inter-thread message boxes.

Definition in file thmsgbx.h.

Macro Definition Documentation

◆ I_CreateMbx

#define I_CreateMbx   DECLARE_IMPORT(4, CreateMbx)

Definition at line 83 of file thmsgbx.h.

◆ I_DeleteMbx

#define I_DeleteMbx   DECLARE_IMPORT(5, DeleteMbx)

Definition at line 84 of file thmsgbx.h.

◆ I_iReferMbxStatus

#define I_iReferMbxStatus   DECLARE_IMPORT(12, iReferMbxStatus)

Definition at line 90 of file thmsgbx.h.

◆ I_iSendMbx

#define I_iSendMbx   DECLARE_IMPORT(7, iSendMbx)

Definition at line 86 of file thmsgbx.h.

◆ I_PollMbx

#define I_PollMbx   DECLARE_IMPORT(9, PollMbx)

Definition at line 88 of file thmsgbx.h.

◆ I_ReceiveMbx

#define I_ReceiveMbx   DECLARE_IMPORT(8, ReceiveMbx)

Definition at line 87 of file thmsgbx.h.

◆ I_ReferMbxStatus

#define I_ReferMbxStatus   DECLARE_IMPORT(11, ReferMbxStatus)

Definition at line 89 of file thmsgbx.h.

◆ I_SendMbx

#define I_SendMbx   DECLARE_IMPORT(6, SendMbx)

Definition at line 85 of file thmsgbx.h.

◆ MBA_MSFIFO

#define MBA_MSFIFO   0x000

Definition at line 30 of file thmsgbx.h.

◆ MBA_MSPRI

#define MBA_MSPRI   0x004

Definition at line 31 of file thmsgbx.h.

◆ MBA_THFIFO

#define MBA_THFIFO   0x000

Definition at line 28 of file thmsgbx.h.

◆ MBA_THPRI

#define MBA_THPRI   0x001

Definition at line 29 of file thmsgbx.h.

◆ thmsgbx_IMPORTS_end

#define thmsgbx_IMPORTS_end   END_IMPORT_TABLE

Definition at line 81 of file thmsgbx.h.

◆ thmsgbx_IMPORTS_start

#define thmsgbx_IMPORTS_start   DECLARE_IMPORT_TABLE(thmsgbx, 1, 1)

Definition at line 80 of file thmsgbx.h.

Function Documentation

◆ CreateMbx()

int CreateMbx ( iop_mbx_t * mbx)
extern

Definition at line 9 of file thmsgbx.c.

◆ DeleteMbx()

int DeleteMbx ( int mbxid)
extern

Definition at line 41 of file thmsgbx.c.

◆ iReferMbxStatus()

int iReferMbxStatus ( int mbxid,
iop_mbx_status_t * info )
extern

Definition at line 271 of file thmsgbx.c.

◆ iSendMbx()

int iSendMbx ( int mbxid,
void * msg )
extern

Definition at line 121 of file thmsgbx.c.

◆ PollMbx()

int PollMbx ( void ** msgvar,
int mbxid )
extern

Definition at line 209 of file thmsgbx.c.

◆ ReceiveMbx()

int ReceiveMbx ( void ** msgvar,
int mbxid )
extern

Definition at line 157 of file thmsgbx.c.

◆ ReferMbxStatus()

int ReferMbxStatus ( int mbxid,
iop_mbx_status_t * info )
extern

Definition at line 247 of file thmsgbx.c.

◆ SendMbx()

int SendMbx ( int mbxid,
void * msg )
extern

Definition at line 81 of file thmsgbx.c.