All kinds of timeouts and time related functions.
More...
All kinds of timeouts and time related functions.
◆ L4_IPC_TIMEOUT_0
Timeout constants.
0 timeout
Definition at line 79 of file __timeout.h.
◆ l4_timeout_s
Basic timeout specification.
Basically a floating point number with 10 bits mantissa and 5 bits exponent (t = m*2^e).
If bit 15 == 1 the timeout is absolute and the lower 6 bits encode the index of the UTCB buffer register(s) holding the absolute 64-bit timeout value. On 32-bit systems, two consecutive UTCB buffer registers are used.
◆ l4_timeout_t
Timeout pair.
For IPC there are usually a send and a receive timeout. So this structure contains a pair of timeouts.
◆ l4_ipc_timeout()
l4_timeout_t l4_ipc_timeout |
( |
unsigned |
snd_man, |
|
|
unsigned |
snd_exp, |
|
|
unsigned |
rcv_man, |
|
|
unsigned |
rcv_exp |
|
) |
| |
|
inline |
◆ l4_rcv_timeout()
Set receive timeout in given to timeout.
- Parameters
-
- Return values
-
Definition at line 215 of file __timeout.h.
◆ l4_snd_timeout()
Set send timeout in given to timeout.
- Parameters
-
- Return values
-
Definition at line 208 of file __timeout.h.
◆ l4_timeout()
◆ l4_timeout_abs()
Set an absolute timeout.
- Parameters
-
pint | Point in time in clocks |
br | The buffer register the timeout shall be placed in. ( |
- Note
- On 32bit architectures the timeout needs two consecutive buffers.)
-
The absolute timeout value will be placed into the buffer register br of the current thread.
- Returns
- timeout value
Definition at line 383 of file utcb.h.
Referenced by L4::Ipc_svr::Timeout_queue_hooks< HOOKS, BR_MAN >::timeout().
◆ l4_timeout_get()
◆ l4_timeout_is_absolute()
Return whether the given timeout is absolute or not.
- Parameters
-
- Returns
- != 0 if absolute, 0 if relative
Definition at line 238 of file __timeout.h.
Referenced by l4_timeout_get().
◆ l4_timeout_rel()
Get relative timeout consisting of mantissa and exponent.
- Parameters
-
man | Mantissa of timeout |
exp | Exponent of timeout |
- Returns
- timeout value
Definition at line 222 of file __timeout.h.
◆ l4_timeout_rel_get()
◆ l4_utcb_mr64_idx()
unsigned l4_utcb_mr64_idx |
( |
unsigned |
idx | ) |
|
|
inline |
Get index into 64bit message registers alias from native-sized index.
- Parameters
-
idx | Index to native-sized message register |
- Returns
- Index to 64bit message register alias
Definition at line 386 of file utcb.h.