1fmodsw(9S)                Data Structures for Drivers               fmodsw(9S)
2
3
4

NAME

6       fmodsw - STREAMS module declaration structure
7

SYNOPSIS

9       #include <sys/stream.h>
10       #include <sys/conf.h>
11
12

INTERFACE LEVEL

14       Solaris DDI specific (Solaris DDI)
15

DESCRIPTION

17       The  fmodsw  structure  contains  information  for STREAMS modules. All
18       STREAMS modules must define a fmodsw structure.
19
20
21       f_name must match mi_idname in  the  module_info  structure.  See  mod‐
22       ule_info(9S).  f_name  should  also  match the module binary name. (See
23       WARNINGS.)
24
25
26       All modules must set the f_flag to D_MP to indicate  that  they  safely
27       allow  multiple threads of execution. See mt-streams(9F) for additional
28       flags.
29

STRUCTURE MEMBERS

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

SEE ALSO

37       mt-streams(9F), modlstrmod(9S), module_info(9S)
38
39
40       STREAMS Programming Guide
41

WARNINGS

43       If f_name does not match the module binary  name,  unexpected  failures
44       can occur.
45
46
47
48SunOS 5.11                        14 Nov 2002                       fmodsw(9S)
Impressum