vitasdk
Documentation of the vitasdk
msgpipe.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2_KERNEL_THREADMGR_MSGPIPE_H_
7 #define _PSP2_KERNEL_THREADMGR_MSGPIPE_H_
8 
9 #include <vitasdk/build_utils.h>
10 #include <psp2/types.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 
28 SceUID sceKernelCreateMsgPipe(const char *name, int type, int attr, unsigned int bufSize, void *opt);
29 
38 
51 int sceKernelSendMsgPipe(SceUID uid, void *message, unsigned int size, int unk1, void *unk2, unsigned int *timeout);
52 
65 int sceKernelSendMsgPipeCB(SceUID uid, void *message, unsigned int size, int unk1, void *unk2, unsigned int *timeout);
66 
78 int sceKernelTrySendMsgPipe(SceUID uid, void *message, SceSize size, int unk1, void *unk2);
79 
92 int sceKernelReceiveMsgPipe(SceUID uid, void *message, SceSize size, int unk1, void *unk2, unsigned int *timeout);
93 
106 int sceKernelReceiveMsgPipeCB(SceUID uid, void *message, SceSize size, int unk1, void *unk2, unsigned int *timeout);
107 
119 int sceKernelTryReceiveMsgPipe(SceUID uid, void *message, SceSize size, int unk1, void *unk2);
120 
130 int sceKernelCancelMsgPipe(SceUID uid, int *psend, int *precv);
131 
133 typedef struct SceKernelMppInfo {
135  SceUID mppId; // Needs confirmation
136  char name[32];
138  int bufSize;
139  int freeSize;
144 
154 
155 
156 #ifdef __cplusplus
157 }
158 #endif
159 
160 #endif /* _PSP2_KERNEL_THREADMGR_MSGPIPE_H_ */
uint8_t type
0 = read?, 1 = write?, 2 = feature?, 3 = ?
Definition: bt.h:2
SceSize size
struct size(variable size)
Definition: debug.h:0
int sceKernelTrySendMsgPipe(SceUID uid, void *message, SceSize size, int unk1, void *unk2)
Try to send a message to a pipe.
int bufSize
Definition: msgpipe.h:138
SceSize size
Definition: msgpipe.h:134
int sceKernelCancelMsgPipe(SceUID uid, int *psend, int *precv)
Cancel a message pipe.
int sceKernelDeleteMsgPipe(SceUID uid)
Delete a message pipe.
int numSendWaitThreads
Definition: msgpipe.h:140
int sceKernelReceiveMsgPipe(SceUID uid, void *message, SceSize size, int unk1, void *unk2, unsigned int *timeout)
Receive a message from a pipe.
SceUID sceKernelCreateMsgPipe(const char *name, int type, int attr, unsigned int bufSize, void *opt)
Create a message pipe.
SceUID mppId
Definition: msgpipe.h:135
int sceKernelReceiveMsgPipeCB(SceUID uid, void *message, SceSize size, int unk1, void *unk2, unsigned int *timeout)
Receive a message from a pipe (with callback)
int sceKernelSendMsgPipeCB(SceUID uid, void *message, unsigned int size, int unk1, void *unk2, unsigned int *timeout)
Send a message to a pipe (with callback)
char name[32]
Definition: msgpipe.h:136
int sceKernelTryReceiveMsgPipe(SceUID uid, void *message, SceSize size, int unk1, void *unk2)
Receive a message from a pipe.
int numReceiveWaitThreads
Definition: msgpipe.h:141
int sceKernelSendMsgPipe(SceUID uid, void *message, unsigned int size, int unk1, void *unk2, unsigned int *timeout)
Send a message to a pipe.
int sceKernelGetMsgPipeInfo(SceUID uid, SceKernelMppInfo *info)
Get the status of a Message Pipe.
SceUInt attr
Definition: msgpipe.h:137
VITASDK_BUILD_ASSERT_EQ(0x3C, SceKernelMppInfo)
int freeSize
Definition: msgpipe.h:139
Message Pipe status info.
Definition: msgpipe.h:133
unsigned int SceSize
Definition: types.h:56
uint32_t SceUInt
Definition: types.h:48
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90
unsigned short unk1
Definition: usbd.h:1