Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ streamadm(4) — Tru64 UNIX 4.0f

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

strmod_add(2)

strmod_del(2)

streamadm(4)  —  File Formats

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_versionVersion identifier for the streamadm structure.  Used for compatibility reasons. 

sa_flagsA flag indicating the type of STREAMS.  Possible values are

STR_IS_DEVICEFor a STREAMS driver. 

STR_IS_MODULE
For a STREAMS module.

sa_nameThe 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_ttysA 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_DEFAULTThe default, global level synchronization. 

SQLVL_GLOBALGlobal level synchronization. 

SQLVL_ELSEWHERE
Arbitrary level synchronization.

SQLVL_MODULEModule level synchronization. 

SQLVL_QUEUEPAIR
Queue pair level synchronization.

SQLVL_QUEUEQueue 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. 

RELATED INFORMATION

Interfaces: strmod_add(2), strmod_del(2). 

Network Programmer’s Guide

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026