![]() |
L4Re Operating System Framework
Interface and Usage Documentation
|
Common constants. More...
Go to the source code of this file.
Macros | |
| #define | L4_SYSF_NONE |
| Capability selector flags. | |
| #define | L4_SYSF_SEND |
| Send-phase flag. | |
| #define | L4_SYSF_RECV |
| Receive-phase flag. | |
| #define | L4_SYSF_OPEN_WAIT |
| Open-wait flag. | |
| #define | L4_SYSF_REPLY |
| Reply flag. | |
| #define | L4_SYSF_CALL |
| Call flags (combines send and receive). | |
| #define | L4_SYSF_WAIT |
| Wait flags (combines receive and open wait). | |
| #define | L4_SYSF_SEND_AND_WAIT |
| Send-and-wait flags. | |
| #define | L4_SYSF_REPLY_AND_WAIT |
| Reply-and-wait flags. | |
| #define | L4_CAP_SHIFT |
| Capability index shift. | |
| #define | L4_CAP_SIZE (1UL << L4_CAP_SHIFT) |
| #define | L4_CAP_OFFSET |
| Offset of two consecutive capability selectors. | |
| #define | L4_CAP_MASK |
| Mask to get only the relevant bits of an l4_cap_idx_t. | |
| #define | L4_INVALID_CAP |
| Invalid capability selector. | |
| #define | L4_PAGESIZE |
| Minimal page size (in bytes). | |
| #define | L4_PAGEMASK |
| Mask for the page number. | |
| #define | L4_LOG2_PAGESIZE |
| Number of bits used for page offset. | |
| #define | L4_SUPERPAGESIZE |
| Size of a large page. | |
| #define | L4_SUPERPAGEMASK |
| Mask for the number of a large page. | |
| #define | L4_LOG2_SUPERPAGESIZE |
| Number of bits used as offset for a large page. | |
| #define | L4_INVALID_PTR ((void *)L4_INVALID_ADDR) |
| Invalid address as pointer type. | |
Functions | |
| l4_addr_t | l4_trunc_page (l4_addr_t address) L4_NOTHROW |
| Round an address down to the next lower page boundary. | |
| l4_addr_t | l4_trunc_size (l4_addr_t address, unsigned char bits) L4_NOTHROW |
| Round an address down to the next lower flexpage with size bits. | |
| l4_addr_t | l4_round_page (l4_addr_t address) L4_NOTHROW |
| Round address up to the next page. | |
| l4_addr_t | l4_round_size (l4_addr_t value, unsigned char bits) L4_NOTHROW |
| Round value up to the next alignment with bits size. | |
| unsigned | l4_bytes_to_mwords (unsigned size) L4_NOTHROW |
| Determine how many machine words (l4_umword_t) are required to store a buffer of 'size' bytes. | |
Common constants.
Definition in file consts.h.
| #define L4_CAP_SIZE (1UL << L4_CAP_SHIFT) |
| #define L4_SYSF_CALL |
Call flags (combines send and receive).
Combines L4_SYSF_SEND and L4_SYSF_RECV.
Definition at line 107 of file consts.h.
Referenced by l4_ipc_call().
| #define L4_SYSF_OPEN_WAIT |
Open-wait flag.
This flag indicates that the receive operation (see L4_SYSF_RECV) shall be an open wait. Open wait means that the invoking thread shall wait for a message from any possible sender and not from the sender denoted by the capability.
| #define L4_SYSF_RECV |
Receive-phase flag.
Setting this flag in a capability selector induces a receive phase, this means the invoking thread waits for a message from the object denoted by the capability. For a send phase see L4_SYSF_SEND.
Definition at line 79 of file consts.h.
Referenced by l4_ipc_receive().
| #define L4_SYSF_REPLY |
Reply flag.
This flag indicates that the send phase shall use the in-kernel reply capability instead of the capability denoted by the selector index.
Definition at line 99 of file consts.h.
Referenced by L4::Server< LOOP_HOOKS >::reply_n_wait().
| #define L4_SYSF_REPLY_AND_WAIT |
Reply-and-wait flags.
Combines L4_SYSF_SEND, L4_SYSF_REPLY, and L4_SYSF_WAIT.
Definition at line 131 of file consts.h.
Referenced by l4_ipc_reply_and_wait().
| #define L4_SYSF_SEND |
Send-phase flag.
Setting this flag in a capability selector induces a send phase, this means a message is sent to the object denoted by the capability. For receive phase see L4_SYSF_RECV.
In l4_vcpu_state_t::user_task this flag means that the kernel has cached the user task capability internally, see l4_thread_vcpu_resume_commit().
Definition at line 68 of file consts.h.
Referenced by l4_ipc_send().
| #define L4_SYSF_SEND_AND_WAIT |
Send-and-wait flags.
Combines L4_SYSF_SEND and L4_SYSF_WAIT.
Definition at line 123 of file consts.h.
Referenced by l4_ipc_send_and_wait().
| #define L4_SYSF_WAIT |
Wait flags (combines receive and open wait).
Combines L4_SYSF_RECV and L4_SYSF_OPEN_WAIT.
Definition at line 115 of file consts.h.
Referenced by l4_ipc_wait().