next up previous contents index
Next: 6 OSKit Device Driver Up: 5.7 oskit_ttystream: Interface to Previous: 5.7.5 flush: Discared buffered

5.7.6 flow: Suspend or resume data transmission or reception

 

SYNOPSIS

#include <oskit/io/ttystream.h>

OSKIT_COMDECL flow(oskit_ttystream_t *tty, int action);

DESCRIPTION

This method controls the transmission or reception of data on this TTY stream. This method corresponds to the POSIX tcflow function; see the POSIX standard for details.

PARAMETERS

tty
The TTY stream object to control.
action
Must be one of the following:
OSKIT_TCOOFF
Suspend output.
OSKIT_TCOON
Restart output.
OSKIT_TCIOFF
Transmit a STOP character.
OSKIT_TCION
Transmit a START character.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.


University of Utah Flux Research Group