streamtab(D4) streamtab(D4)
NAME
streamtab - STREAMS driver and module declaration structure
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
DESCRIPTION
The streamtab structure is made up of pointers to qinit
structures for both the read and write queue portions of each
module or driver. (Multiplexing drivers require both upper
and lower qinit structures.) The qinit structure contains the
entry points through which the module or driver routines are
called.
USAGE
Each STREAMS driver or module must have a streamtab structure.
The streamtab structure must be named prefixinfo, where prefix
is the driver prefix.
Structure Definitions
The streamtab structure contains the following members:
struct qinit *st_rdinit; /* read queue */
struct qinit *st_wrinit; /* write queue */
struct qinit *st_muxrinit; /* lower read queue*/
struct qinit *st_muxwinit; /* lower write queue*/
The st_rdinit field contains a pointer to the read-side qinit
structure. For a multiplexing driver, this is the qinit
structure for the upper read side.
The st_wrinit field contains a pointer to the write-side qinit
structure. For a multiplexing driver, this is the qinit
structure for the upper write side.
The st_muxrinit field contains a pointer to the lower read-
side qinit structure for multiplexing drivers. For modules
and non-multiplexing drivers, this field should be set to
NULL.
The st_muxwinit field contains a pointer to the lower write-
side qinit structure for multiplexing drivers. For modules
and non-multiplexing drivers, this field should be set to
NULL.
Copyright 1994 Novell, Inc. Page 1
streamtab(D4) streamtab(D4)
REFERENCES
qinit(D4)
NOTICES
Portability
All processors
Copyright 1994 Novell, Inc. Page 2