Go to main content

man pages section 9: DDI and DKI Properties and Data Structures

Exit Print View

Updated: Thursday, June 13, 2019
 
 

fmodsw(9S)

Name

fmodsw - STREAMS module declaration structure

Synopsis

#include <sys/stream.h>
#include <sys/conf.h> 

Interface Level

Solaris DDI specific (Solaris DDI)

Description

The fmodsw structure contains information for STREAMS modules. All STREAMS modules must define a fmodsw structure.

f_name must match mi_idname in the module_info structure. See module_info(9S). f_name should also match the module binary name. (See WARNINGS.)

All modules must set the f_flag to D_MP to indicate that they safely allow multiple threads of execution. See mt-streams(9F) for additional flags.

Structure Members


char              f_name[FMNAMESZ + 1];   /* module name */
struct streamtab  *f_str;                 /* streams information */
int               f_flag;                 /* flags */

See Also

mt-streams(9F), modlstrmod(9S), module_info(9S)

STREAMS Programming Guide

Warnings

If f_name does not match the module binary name, unexpected failures can occur.