app.c File Reference

DRROPS Stream Interface. Application stream implementation. More...

Go to the source code of this file.

Functions

void dsi_init_streams (void)
 Initialize stream table.
static dsi_stream_t__allocate_stream (void)
 Find and allocate unused stream descriptor.
int dsi_is_valid_stream (dsi_stream_t *stream)
 Check if stream is a valid stream descriptor.
static int dsi_is_valid_component (dsi_component_t *component)
 Check if component is a valid component decription.
int dsi_stream_create (dsi_component_t *sender, dsi_component_t *receiver, l4dm_dataspace_t ctrl, l4dm_dataspace_t data, dsi_stream_t **stream)
 Create application stream and connect send/receive component.
int dsi_stream_start (dsi_stream_t *stream)
 Send start messages to send/receive components.
int dsi_stream_stop (dsi_stream_t *stream)
 stop the transfer on a stream

This function calls the stop-functions provided on dsi_stream_create() to stop the data transfer. It is up to the two components to react in a reasonable way, dsi does not check anything, it just calls the functions, first sender, receiver then.

int dsi_stream_close (dsi_stream_t *stream)
 Close stream.

Variables

static dsi_stream_t streams [DSI_MAX_STREAMS]
 stream descriptors
static int next_stream
 next index to search for unused stream


Detailed Description

DRROPS Stream Interface. Application stream implementation.

Date:
07/10/2000
Author:
Lars Reuther <reuther@os.inf.tu-dresden.de>

Definition in file app.c.


Generated on Wed Apr 11 06:40:13 2012 for DSI - Drops Streaming Interface by  doxygen 1.5.6