msg_t Struct Reference

Describes a message object which can be sent between threads. More...

Detailed Description

Describes a message object which can be sent between threads.

User can set type and one of content.ptr and content.value. (content is a union) The meaning of type and the content fields is totally up to the user, the corresponding fields are never read by the kernel.

Definition at line 185 of file msg.h.

#include <msg.h>

Data Fields

kernel_pid_t sender_pid
 PID of sending thread. More...
 
uint16_t type
 Type field.
 
union {
   void *   ptr
 Pointer content field.
 
   uint32_t   value
 Value content field.
 
content
 Content of the message.
 

Field Documentation

◆ sender_pid

kernel_pid_t msg_t::sender_pid

PID of sending thread.

Will be filled in by msg_send.

Definition at line 186 of file msg.h.


The documentation for this struct was generated from the following file: