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