Index Index for
Section 4
Index Alphabetical
listing for S
Bottom of page Bottom of
page

streamadm(4)

NAME

streamadm - Defines configuration information about a STREAMS module or driver

SYNOPSIS

#include <sys/stream.h> struct streamadm( uint sa_version, uint sa_flags, char sa_name [FMNAMESZ+1], caddr_t sa_ttys, uint sa_sync_level, caddr_t sa_sync_info );

PARAMETERS

sa_version Version identifier for the streamadm structure. Used for compatibility reasons. sa_flags A flag indicating the type of STREAMS. Possible values are: STR_IS_DEVICE For a STREAMS driver. STR_IS_MODULE For a STREAMS module. sa_name The unique name of the module or driver. Modules and drivers share a common name space. The maximum length for a name is set by FMNAMESZ. sa_ttys A pointer to the ttys() routine that will be used by the module or driver. When the module or driver is added via strmod_add(), this pointer will be placed in the d_ttys field in the cdevsw structure. If the driver is not a tty driver, this field is set to NULL. sa_sync_level The synchronization level for the module or driver. This field is relevant on multiprocessors. The possible values are: SQLVL_DEFAULT The default, global level synchronization. SQLVL_GLOBAL Global level synchronization. SQLVL_ELSEWHERE Arbitrary level synchronization. SQLVL_MODULE Module level synchronization. SQLVL_QUEUEPAIR Queue pair level synchronization. SQLVL_QUEUE Queue level synchronization. sa_sync_info A pointer to synchronization data. This field is relevant if sa_sync_level is SQLVL_ELSEWHERE.

DESCRIPTION

The streamadm structure defines additional configuration information for a STREAMS module or driver. The operating system configuration procedure uses this structure in addition to the traditional streamtab structure when configuring a STREAMS module or driver. The Network Programmer's Guide contains additional information about the synchronization levels for the module or driver.

SEE ALSO

Interfaces: strmod_add(2), strmod_del(2) Network Programmer's Guide

Index Index for
Section 4
Index Alphabetical
listing for S
Top of page Top of
page