<util/tls.h>¶
Per-thread control block (TCB): identity, priority and message box.
Every thread has one TCB slot in its space; the kernel fills the header and IPC copies messages through buf. GetTls() finds the current thread's slot.
#include <util/tls.h>
Constants¶
Structures¶
ThreadLocalData¶
One thread's TCB slot. The header is written by the kernel; treat it as read-only.
| Field | Type | Description |
|---|---|---|
msg_buf |
void * |
Address of buf, set by the kernel. |
tid |
Tid |
Thread ID. |
spid |
Spid |
ID of the owning space. |
prio |
uint8_t |
Base priority. |
max_prio |
uint8_t |
Highest priority the thread may set. |
padding |
uint8_t |
Pads the header to TCB_HDR_SIZE. |
buf |
uint8_t |
Message box used by Call(), Reply() and receives. |