L4Re Operating System Framework
Interface and Usage Documentation
|
Functions | |
long | l4shmc_chunk_try_to_take_for_reading (l4shmc_chunk_t *chunk) |
Try to mark chunk busy reading. | |
long | l4shmc_enable_chunk (l4shmc_chunk_t *chunk) |
Enable a signal connected with a chunk. | |
long | l4shmc_wait_chunk (l4shmc_chunk_t *chunk) |
Wait on a specific chunk. | |
long | l4shmc_wait_chunk_to (l4shmc_chunk_t *chunk, l4_timeout_t timeout) |
Check whether a specific chunk has an event pending, with timeout. | |
long | l4shmc_wait_chunk_try (l4shmc_chunk_t *chunk) |
Check whether a specific chunk has an event pending. | |
long | l4shmc_chunk_consumed (l4shmc_chunk_t *chunk) |
Mark a chunk as free. | |
long | l4shmc_is_chunk_ready (l4shmc_chunk_t const *chunk) |
Check whether data is available. | |
long | l4shmc_chunk_size (l4shmc_chunk_t const *chunk) |
Get current size of a chunk. | |
|
inline |
Mark a chunk as free.
chunk | Chunk to mark as free. |
0 | Success. |
<0 | Error. |
|
inline |
Get current size of a chunk.
chunk | Chunk. |
|
inline |
Try to mark chunk busy reading.
chunk | chunk to mark busy reading. |
0 | Chunk could be taken and can be read. |
<0 | Chunk could not be taken, try again. |
long l4shmc_enable_chunk | ( | l4shmc_chunk_t * | chunk | ) |
Enable a signal connected with a chunk.
chunk | Chunk to enable. |
0 | Success. |
<0 | Error. |
A signal must be enabled before waiting when the consumer waits on any signal. Enabling is not needed if the consumer waits for a specific signal or chunk.
|
inline |
Check whether data is available.
chunk | Chunk to check. |
!=0 | Data is available. |
0 | No data available. |
|
inline |
Wait on a specific chunk.
chunk | Chunk to wait for. |
0 | Success. |
<0 | Error. |
long l4shmc_wait_chunk_to | ( | l4shmc_chunk_t * | chunk, |
l4_timeout_t | timeout | ||
) |
Check whether a specific chunk has an event pending, with timeout.
chunk | Chunk to check. |
timeout | Timeout. |
0 | Success. |
<0 | Error. |
The return code indicates whether an event was pending or not. Success means an event was pending, if an receive timeout error is returned no event was pending.
|
inline |
Check whether a specific chunk has an event pending.
chunk | Chunk to check. |
0 | Success. |
<0 | Error. |
The return code indicates whether an event was pending or not. Success means an event was pending, if an receive timeout error is returned no event was pending.