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

NAME

6       modlstrmod - linkage structure for loadable STREAMS modules
7

SYNOPSIS

9       #include <sys/modctl.h>
10
11

INTERFACE LEVEL

13       Solaris DDI specific (Solaris DDI)
14

DESCRIPTION

16       The  modlstrmod  structure  is used by STREAMS modules to export module
17       specific information to the kernel.
18

STRUCTURE MEMBERS

20         struct mod_ops     *strmod_modops;
21         char               *strmod_linkinfo;
22         struct fmodsw      *strmod_fmodsw;
23
24
25       strmod_modops       Must  always  be  initialized  to  the  address  of
26                           mod_strmodops.  This  identifies  the  module  as a
27                           loadable STREAMS module.
28
29
30       strmod_linkinfo     Can be any string up to MODMAXNAMELEN, and is  used
31                           to  describe the module. This string is usually the
32                           name of the module, but can contain other  informa‐
33                           tion (such as a version number).
34
35
36       strmod_fmodsw       Is  a pointer to a template of a class entry within
37                           the module that is copied to the kernel's class ta‐
38                           ble when the module is loaded.
39
40

SEE ALSO

42       modload(1M)
43
44
45       Writing Device Drivers
46
47
48
49SunOS 5.11                        7 Jun 1993                    modlstrmod(9S)
Impressum