L4Re - L4 Runtime Environment
+ Collaboration diagram for Producer:

Functions

long l4shmc_chunk_try_to_take (l4shmc_chunk_t *chunk)
 Try to mark chunk busy. More...
 
long l4shmc_chunk_ready (l4shmc_chunk_t *chunk, l4_umword_t size)
 Mark chunk as filled (ready). More...
 
long l4shmc_chunk_ready_sig (l4shmc_chunk_t *chunk, l4_umword_t size)
 Mark chunk as filled (ready) and signal consumer. More...
 
long l4shmc_is_chunk_clear (l4shmc_chunk_t *chunk)
 Check whether chunk is free. More...
 

Detailed Description

Function Documentation

◆ l4shmc_chunk_ready()

long l4shmc_chunk_ready ( l4shmc_chunk_t *  chunk,
l4_umword_t  size 
)
inline

Mark chunk as filled (ready).

Parameters
chunkchunk.
sizeSize of data in the chunk, in bytes.
Return values
0Success.
<0Error.

◆ l4shmc_chunk_ready_sig()

long l4shmc_chunk_ready_sig ( l4shmc_chunk_t *  chunk,
l4_umword_t  size 
)
inline

Mark chunk as filled (ready) and signal consumer.

Parameters
chunkchunk.
sizeSize of data in the chunk, in bytes.
Return values
0Success.
<0Error.
Examples:
examples/libs/shmc/prodcons.c.

◆ l4shmc_chunk_try_to_take()

long l4shmc_chunk_try_to_take ( l4shmc_chunk_t *  chunk)
inline

Try to mark chunk busy.

Parameters
chunkchunk to mark.
Return values
0Chunk could be taken.
<0Chunk could not be taken, try again.
Examples:
examples/libs/shmc/prodcons.c.

◆ l4shmc_is_chunk_clear()

long l4shmc_is_chunk_clear ( l4shmc_chunk_t *  chunk)
inline

Check whether chunk is free.

Parameters
chunkChunk to check.
Return values
0Success.
<0Error.