The msgsnd() system call appends a message to a message queue. It is a blocking version of msgsnd() and will block until the message can be enqueued. The msqid argument is the identifier of the message queue, and the msgp points to the message structure to be sent. The msgsz argument is the size of the passed message structure in bytes. The msgflag argument is the bitwise OR of flags to indicate the type of message transfer.
The msgp argument is a pointer to a structure of the following format:
structmsgbuf{longmtype;/* message type, must be > 0 */charmtext[1];/* message data */};
The mtype field specifies the type of message being sent, and must be nonzero. On return, the mtext field in the source msgp structure contains no meaningful data.
msgrcv() - Receive a message from a message queue.
This document was automatically generated by OpenAI and needs review. It might
not be accurate and might contain errors. The authors of Tracee recommend that
the user reads the "events.go" source file to understand the events and their
arguments better.