L4Re Operating System Framework
Interface and Usage Documentation
|
Utilities, generic file. More...
Modules | |
Atomic Instructions | |
Bit Manipulation | |
Bitmap graphics and fonts | |
This library provides some functions for bitmap handling in frame buffers. | |
CPU related functions | |
Comfortable Command Line Parsing | |
ELF binary format | |
Functions and types related to ELF binaries. | |
Functions to manipulate the local IDT | |
IA32 Port I/O API | |
Internal functions | |
Kernel Interface Page API | |
Low-Level Thread Functions | |
Random number support | |
Timestamp Counter | |
Files | |
file | rand.h |
Simple Pseudo-Random Number Generator. | |
Functions | |
long | l4util_splitlog2_hdl (l4_addr_t start, l4_addr_t end, long(*handler)(l4_addr_t s, l4_addr_t e, int log2size)) |
Split a range into log2 base and size aligned chunks. | |
l4_addr_t | l4util_splitlog2_size (l4_addr_t start, l4_addr_t end) |
Return log2 base and size aligned length of a range. | |
l4_timeout_s | l4util_micros2l4to (l4_uint64_t us) L4_NOTHROW |
Calculate l4 timeouts. | |
void | l4_sleep (l4_uint32_t ms) L4_NOTHROW |
Suspend thread for a period of ms milliseconds. | |
void | l4_usleep (l4_uint64_t us) L4_NOTHROW |
Suspend thread for a period of us microseconds. | |
void | l4_sleep_forever (void) L4_NOTHROW L4_NORETURN |
Go sleep and never wake up. | |
void | l4_touch_ro (const void *addr, unsigned size) L4_NOTHROW |
Touch data area to force mapping (read-only) | |
void | l4_touch_rw (const void *addr, unsigned size) L4_NOTHROW |
Touch data areas to force mapping (read-write) | |
Utilities, generic file.
void l4_sleep | ( | l4_uint32_t | ms | ) |
Suspend thread for a period of ms milliseconds.
ms | Time in milliseconds |
Referenced by L4Re::Namespace::query().
|
inline |
Touch data area to force mapping (read-only)
addr | Start of memory area to touch. |
size | Size of area to touch. |
Definition at line 94 of file util.h.
References L4_PAGESIZE, and l4_trunc_page().
|
inline |
Touch data areas to force mapping (read-write)
addr | Start of memory area to touch. |
size | Size of area to touch. |
Definition at line 107 of file util.h.
References L4_PAGESIZE, and l4_trunc_page().
void l4_usleep | ( | l4_uint64_t | us | ) |
Suspend thread for a period of us microseconds.
us | Time in microseconds |
l4_timeout_s l4util_micros2l4to | ( | l4_uint64_t | us | ) |
Calculate l4 timeouts.
us | time in microseconds. Special cases:
|
|
inline |
Split a range into log2 base and size aligned chunks.
start | Start of range |
end | End of range (inclusive) (e.g. 2-4 is len 3) |
handler | Handler function that is called with start and end (both inclusive) of the chunk. On success, the handler must return 0, if it returns !=0 the function will immediately return with the return code of the handler. |
Definition at line 53 of file splitlog2.h.
References L4_EINVAL, and l4util_splitlog2_size().
Return log2 base and size aligned length of a range.
start | Start of range |
end | End of range (inclusive) (e.g. 2-4 is len 3) |
Definition at line 72 of file splitlog2.h.
Referenced by l4util_splitlog2_hdl().