L4Re Operating System Framework
Interface and Usage Documentation
|
Functions | |
long | l4shmc_chunk_try_to_take (l4shmc_chunk_t *chunk) |
Try to mark chunk busy. | |
long | l4shmc_chunk_try_to_take_for_writing (l4shmc_chunk_t *chunk) |
Try to mark chunk busy writing. | |
long | l4shmc_chunk_try_to_take_for_overwriting (l4shmc_chunk_t *chunk) |
Try to mark the chunk busy writing after it was ready for reading. | |
long | l4shmc_chunk_ready (l4shmc_chunk_t *chunk, l4_umword_t size) |
Mark chunk as filled (ready). | |
long | l4shmc_chunk_ready_sig (l4shmc_chunk_t *chunk, l4_umword_t size) |
Mark chunk as filled (ready) and signal consumer. | |
long | l4shmc_is_chunk_clear (l4shmc_chunk_t const *chunk) |
Check whether chunk is free. | |
|
inline |
Mark chunk as filled (ready).
chunk | chunk. |
size | Size of data in the chunk, in bytes. |
0 | Success. |
<0 | Error. |
|
inline |
Mark chunk as filled (ready) and signal consumer.
chunk | chunk. |
size | Size of data in the chunk, in bytes. |
0 | Success. |
<0 | Error. |
|
inline |
Try to mark chunk busy.
chunk | chunk to mark. |
0 | Chunk could be taken. |
<0 | Chunk could not be taken, try again. |
|
inline |
Try to mark the chunk busy writing after it was ready for reading.
chunk | chunk to mark busy writing. |
This function is used by the producer to overwrite a message if the consumer did not read the message within an expected time. This function can only be used if the consumer uses l4shmc_chunk_try_to_take_for_reading() before reading the chunk.
0 | Chunk could be taken and can be written. |
<0 | Chunk could not be taken, try again. |
|
inline |
Try to mark chunk busy writing.
This function is actually an alias for l4shmc_chunk_try_to_take().
chunk | chunk to mark busy writing. |
0 | Chunk could be taken and can be written. |
<0 | Chunk could not be taken, try again. |
|
inline |
Check whether chunk is free.
chunk | Chunk to check. |
!=0 | Chunk is clear. |
0 | Chunk is not clear. |