L4Re - L4 Runtime Environment
Event interface

Event C interface. More...

+ Collaboration diagram for Event interface:

Functions

long l4re_event_get_buffer (const l4_cap_idx_t server, const l4re_ds_t ds) L4_NOTHROW
 Get an event signal buffer. More...
 
long l4re_event_get_num_streams (const l4_cap_idx_t server) L4_NOTHROW
 Get number of streams. More...
 
long l4re_event_get_stream_info (const l4_cap_idx_t server, int idx, l4re_event_stream_info_t *info) L4_NOTHROW
 Get information on a stream. More...
 
long l4re_event_get_stream_info_for_id (const l4_cap_idx_t server, l4_umword_t stream_id, l4re_event_stream_info_t *info) L4_NOTHROW
 Get info for a stream given a stream id. More...
 
long l4re_event_get_axis_info (const l4_cap_idx_t server, l4_umword_t id, unsigned naxes, unsigned const *axis, l4re_event_absinfo_t *info) L4_NOTHROW
 Get Axis information for a stream. More...
 

Detailed Description

Event C interface.

Function Documentation

◆ l4re_event_get_axis_info()

long l4re_event_get_axis_info ( const l4_cap_idx_t  server,
l4_umword_t  id,
unsigned  naxes,
unsigned const *  axis,
l4re_event_absinfo_t *  info 
)

Get Axis information for a stream.

Parameters
serverServer to talk to.
idId of the stream to get information from.
naxesNumber of axes in axis array.
[in]axisArray of axis IDs whose information should be retrieved.
[out]infoInformation buffer to store the retrieved axis infos.
Return values
0Success
<0Error
See also
L4Re::Event::get_axis_info

◆ l4re_event_get_buffer()

long l4re_event_get_buffer ( const l4_cap_idx_t  server,
const l4re_ds_t  ds 
)

Get an event signal buffer.

Parameters
serverServer to talk to.
dsBuffer to event data.
Returns
0 for success, <0 on error
See also
L4Re::Event::get_buffer

◆ l4re_event_get_num_streams()

long l4re_event_get_num_streams ( const l4_cap_idx_t  server)

Get number of streams.

Parameters
serverServer to talk to.
Returns
0 for success, <0 on error
See also
L4Re::Event::get_num_streams

◆ l4re_event_get_stream_info()

long l4re_event_get_stream_info ( const l4_cap_idx_t  server,
int  idx,
l4re_event_stream_info_t *  info 
)

Get information on a stream.

Parameters
serverServer to talk to.
idxIndex value.
Return values
infoInformation buffer.
Returns
0 for success, <0 on error
See also
L4Re::Event::get_stream_info

◆ l4re_event_get_stream_info_for_id()

long l4re_event_get_stream_info_for_id ( const l4_cap_idx_t  server,
l4_umword_t  stream_id,
l4re_event_stream_info_t *  info 
)

Get info for a stream given a stream id.

Parameters
serverServer to talk to.
stream_idStream ID.
Return values
infoInformation buffer.
Returns
0 for success, <0 on error
See also
L4Re::Event::get_stream_info_for_id