FMODSW(9S) Data Structures for Drivers FMODSW(9S)
fmodsw - STREAMS module declaration structure
#include <sys/stream.h>
#include <sys/conf.h>
illumos DDI specific (illumos DDI)
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.
char f_name[FMNAMESZ + 1]; /* module name */
struct streamtab *f_str; /* streams information */
int f_flag; /* flags */
mt-streams(9F), modlstrmod(9S), module_info(9S)
STREAMS Programming Guide
If f_name does not match the module binary name, unexpected failures
can occur.
November 14, 2002 FMODSW(9S)
NAME
fmodsw - STREAMS module declaration structure
SYNOPSIS
#include <sys/stream.h>
#include <sys/conf.h>
INTERFACE LEVEL
illumos DDI specific (illumos 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.
November 14, 2002 FMODSW(9S)