streamadm(4) — File Formats
OSF
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. Some possible values are
SQLVL_GLOBAL
Global synchronization.
SQLVL_FAMILY
Module family synchronization.
SQLVL_MODULE
Module synchronization.
SQLVL_QUEUE_PAIR
Queue pair synchronization.
SQLVL_QUEUE
Single queue synchronization.
sa_sync_info
A pointer to synchronization data. This field is relevant if sa_sync_level is SQLVL_FAMILY.
DESCRIPTION
The streamadm structure defines additional configuration information for a STREAMS module or driver. The OSF/1 configuration procedure uses this structure in addition to the traditional streamtab structure when configuring a STREAMS module or driver.
RELATED INFORMATION
Interfaces: strmod_add(2)