NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO
#include <ipc/chIpc.h>int ipcGetData(KnMsgDesc *msg);
IPC
The ipcGetData call delivers the body size of the current thread's current message to the thread's address space.
The message body may only be obtained if the message was received with a NULL bodyAddr argument (see ipcReceive(2K)). The message body may only be obtained once; system buffers are freed after the operation.
The msg field points to a KnMsgDesc structure, as described in ipcReceive(2K).
This function returns the real body size delivered.
Upon successful completion, the body size delivered is returned. Otherwise, a negative error code is returned.
There is no current message (no message has been received by the current thread since the last ipcReply(2K) or ipcSave(2K)).
Some of the data provided are outside the current actor's address space.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO