25 #ifndef L4_SYS_TIMEOUT_H__ 26 #define L4_SYS_TIMEOUT_H__ 28 #include <l4/sys/l4int.h> 77 #define L4_IPC_TIMEOUT_0 ((l4_timeout_s){0x0400}) 78 #define L4_IPC_TIMEOUT_NEVER ((l4_timeout_s){0}) 79 #define L4_IPC_NEVER_INITIALIZER {0} 80 #define L4_IPC_NEVER ((l4_timeout_t){0}) 81 #define L4_IPC_RECV_TIMEOUT_0 ((l4_timeout_t){0x00000400}) 82 #define L4_IPC_SEND_TIMEOUT_0 ((l4_timeout_t){0x04000000}) 83 #define L4_IPC_BOTH_TIMEOUT_0 ((l4_timeout_t){0x04000400}) 93 L4_TIMEOUT_ABS_V1_ms = 0,
97 L4_TIMEOUT_ABS_V16_ms,
98 L4_TIMEOUT_ABS_V32_ms,
99 L4_TIMEOUT_ABS_V64_ms,
100 L4_TIMEOUT_ABS_V128_ms,
101 L4_TIMEOUT_ABS_V256_ms,
102 L4_TIMEOUT_ABS_V512_ms,
107 L4_TIMEOUT_ABS_V16_s,
108 L4_TIMEOUT_ABS_V32_s,
135 unsigned rcv_man,
unsigned rcv_exp)
L4_NOTHROW;
211 unsigned rcv_man,
unsigned rcv_exp) L4_NOTHROW
214 t.
p.
snd.
t = (snd_man & 0x3ff) | ((snd_exp << 10) & 0x7c00);
215 t.
p.
rcv.
t = (rcv_man & 0x3ff) | ((rcv_exp << 10) & 0x7c00);
263 return to.
t & 0x8000;
l4_timeout_t l4_timeout(l4_timeout_s snd, l4_timeout_s rcv) L4_NOTHROW
Combine send and receive timeout in a timeout.
union l4_timeout_t l4_timeout_t
Timeout pair.
unsigned short int l4_uint16_t
Unsigned 16bit value.
void l4_snd_timeout(l4_timeout_s snd, l4_timeout_t *to) L4_NOTHROW
Set send timeout in given to timeout.
l4_timeout_abs_validity
Intervals of validity for absolute timeoutsTimes are actually 2^x values (e.g.
l4_timeout_s snd
send timeout
l4_kernel_clock_t l4_timeout_get(l4_kernel_clock_t cur, l4_timeout_s to) L4_NOTHROW
Get clock value for a clock + a timeout.
struct l4_timeout_t::@22 p
combined timeout
Basic timeout specification.
l4_uint64_t l4_kernel_clock_t
Kernel clock type.
l4_timeout_t l4_ipc_timeout(unsigned snd_man, unsigned snd_exp, unsigned rcv_man, unsigned rcv_exp) L4_NOTHROW
Convert explicit timeout values to l4_timeout_t type.
l4_uint16_t t
timeout value
void l4_rcv_timeout(l4_timeout_s rcv, l4_timeout_t *to) L4_NOTHROW
Set receive timeout in given to timeout.
l4_kernel_clock_t l4_timeout_rel_get(l4_timeout_s to) L4_NOTHROW
Get clock value of out timeout.
struct l4_timeout_s l4_timeout_s
Basic timeout specification.
l4_timeout_s rcv
receive timeout
l4_timeout_s l4_timeout_rel(unsigned man, unsigned exp) L4_NOTHROW
Get relative timeout consisting of mantissa and exponent.
unsigned l4_timeout_is_absolute(l4_timeout_s to) L4_NOTHROW
Return whether the given timeout is absolute or not.
unsigned int l4_uint32_t
Unsigned 32bit value.
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.