L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
+ Collaboration diagram for Signals:

Modules

 Consumer
 
 Producer
 

Functions

long l4shmc_add_signal (l4shmc_area_t *shmarea, char const *signal_name, l4shmc_signal_t *signal)
 Add a signal for the shared memory area.
 
long l4shmc_attach_signal (l4shmc_area_t *shmarea, char const *signal_name, l4_cap_idx_t thread, l4shmc_signal_t *signal)
 Attach to signal.
 
long l4shmc_get_signal (l4shmc_area_t *shmarea, char const *signal_name, l4shmc_signal_t *signal)
 Get signal object from the shared memory area.
 
l4_cap_idx_t l4shmc_signal_cap (l4shmc_signal_t const *signal)
 Get the signal capability of a signal.
 
long l4shmc_check_magic (l4shmc_chunk_t const *chunk)
 Check magic value of a chunk.
 

Detailed Description

Function Documentation

◆ l4shmc_add_signal()

long l4shmc_add_signal ( l4shmc_area_t *  shmarea,
char const *  signal_name,
l4shmc_signal_t *  signal 
)

Add a signal for the shared memory area.

Parameters
shmareaThe shared memory area.
signal_nameName of the signal.
[out]signalSignal structure to fill in.
Return values
0Success.
<0Error.
Examples
examples/libs/shmc/prodcons.c.

◆ l4shmc_attach_signal()

long l4shmc_attach_signal ( l4shmc_area_t *  shmarea,
char const *  signal_name,
l4_cap_idx_t  thread,
l4shmc_signal_t *  signal 
)

Attach to signal.

Parameters
shmareaShared memory area.
signal_nameName of the signal.
threadThread capability index to attach the signal to.
[out]signalSignal data structure to fill.
Return values
0Success.
<0Error.
Examples
examples/libs/shmc/prodcons.c.

◆ l4shmc_check_magic()

long l4shmc_check_magic ( l4shmc_chunk_t const *  chunk)
inline

Check magic value of a chunk.

Parameters
chunkChunk.
Return values
0Magic value is not valid.
>0Chunk is OK, the magic value is valid.

◆ l4shmc_get_signal()

long l4shmc_get_signal ( l4shmc_area_t *  shmarea,
char const *  signal_name,
l4shmc_signal_t *  signal 
)

Get signal object from the shared memory area.

Parameters
shmareaShared memory area.
signal_nameName of the signal.
[out]signalSignal data structure to fill.
Return values
0Success.
<0Error.

◆ l4shmc_signal_cap()

l4_cap_idx_t l4shmc_signal_cap ( l4shmc_signal_t const *  signal)
inline

Get the signal capability of a signal.

Parameters
signalSignal.
Returns
Capability of the signal object.