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

Go to the source code of this file.

Data Structures

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.


Data Structure Documentation

◆ iop_mbx_t

struct iop_mbx_t

Definition at line 32 of file thmsgbx.h.

Data Fields
unsigned int attr
unsigned int option

◆ _iop_message

struct _iop_message

Definition at line 51 of file thmsgbx.h.

+ Collaboration diagram for _iop_message:
Data Fields
struct _iop_message * next
unsigned char priority
unsigned char unused[3]

◆ _iop_mbx_status

struct _iop_mbx_status

Definition at line 58 of file thmsgbx.h.

+ Collaboration diagram for _iop_mbx_status:
Data Fields
unsigned int attr
unsigned int option
int numWaitThreads
int numMessage
iop_message_t * topPacket
int reserved[2]

Macro Definition Documentation

◆ MBA_THFIFO

#define MBA_THFIFO   0x000

Definition at line 27 of file thmsgbx.h.

◆ MBA_THPRI

#define MBA_THPRI   0x001

Definition at line 28 of file thmsgbx.h.

◆ MBA_MSFIFO

#define MBA_MSFIFO   0x000

Definition at line 29 of file thmsgbx.h.

◆ MBA_MSPRI

#define MBA_MSPRI   0x004

Definition at line 30 of file thmsgbx.h.

◆ thmsgbx_IMPORTS_start

#define thmsgbx_IMPORTS_start   DECLARE_IMPORT_TABLE(thmsgbx, 1, 1)

Definition at line 79 of file thmsgbx.h.

◆ thmsgbx_IMPORTS_end

#define thmsgbx_IMPORTS_end   END_IMPORT_TABLE

Definition at line 80 of file thmsgbx.h.

◆ I_CreateMbx

#define I_CreateMbx   DECLARE_IMPORT(4, CreateMbx)

Definition at line 82 of file thmsgbx.h.

◆ I_DeleteMbx

#define I_DeleteMbx   DECLARE_IMPORT(5, DeleteMbx)

Definition at line 83 of file thmsgbx.h.

◆ I_SendMbx

#define I_SendMbx   DECLARE_IMPORT(6, SendMbx)

Definition at line 84 of file thmsgbx.h.

◆ I_iSendMbx

#define I_iSendMbx   DECLARE_IMPORT(7, iSendMbx)

Definition at line 85 of file thmsgbx.h.

◆ I_ReceiveMbx

#define I_ReceiveMbx   DECLARE_IMPORT(8, ReceiveMbx)

Definition at line 86 of file thmsgbx.h.

◆ I_PollMbx

#define I_PollMbx   DECLARE_IMPORT(9, PollMbx)

Definition at line 87 of file thmsgbx.h.

◆ I_ReferMbxStatus

#define I_ReferMbxStatus   DECLARE_IMPORT(11, ReferMbxStatus)

Definition at line 88 of file thmsgbx.h.

◆ I_iReferMbxStatus

#define I_iReferMbxStatus   DECLARE_IMPORT(12, iReferMbxStatus)

Definition at line 89 of file thmsgbx.h.

Function Documentation

◆ CreateMbx()

int CreateMbx ( iop_mbx_t mbx)

Definition at line 9 of file thmsgbx.c.

◆ DeleteMbx()

int DeleteMbx ( int  mbxid)

Definition at line 41 of file thmsgbx.c.

◆ SendMbx()

int SendMbx ( int  mbxid,
void *  msg 
)

Definition at line 81 of file thmsgbx.c.

◆ iSendMbx()

int iSendMbx ( int  mbxid,
void *  msg 
)

Definition at line 121 of file thmsgbx.c.

◆ ReceiveMbx()

int ReceiveMbx ( void **  msgvar,
int  mbxid 
)

Definition at line 157 of file thmsgbx.c.

◆ PollMbx()

int PollMbx ( void **  msgvar,
int  mbxid 
)

Definition at line 209 of file thmsgbx.c.

◆ ReferMbxStatus()

int ReferMbxStatus ( int  mbxid,
iop_mbx_status_t info 
)

Definition at line 247 of file thmsgbx.c.

◆ iReferMbxStatus()

int iReferMbxStatus ( int  mbxid,
iop_mbx_status_t info 
)

Definition at line 271 of file thmsgbx.c.