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

NAME

6       module_info - STREAMS driver identification and limit value structure
7

SYNOPSIS

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

INTERFACE LEVEL

13       Architecture independent level 1 (DDI/DKI).
14

DESCRIPTION

16       When  a  module or driver is declared, several identification and limit
17       values can be set. These values are stored in  the  module_info  struc‐
18       ture.
19
20
21       The  module_info  structure  is  intended to be read-only. However, the
22       flow control limits (mi_hiwat and mi_lowat) and the packet size  limits
23       (mi_minpsz and mi_maxpsz) are copied to the QUEUE structure, where they
24       can be modified.
25
26
27       For a driver, mi_idname must match the name of the driver binary  file.
28       For a module, mi_idname must match the fname field of the fmodsw struc‐
29       ture. See fmodsw(9S) for details.
30

STRUCTURE MEMBERS

32         ushort_t      mi_idnum;      /* module ID number */
33         char          *mi_idname;    /* module name */
34         ssize_t       mi_minpsz;     /* minimum packet size */
35         ssize_t       mi_maxpsz;     /* maximum packet size */
36         size_t        mi_hiwat;      /* high water mark */
37         size_t        mi_lowat;      /* low water mark */
38
39
40
41       The constant FMNAMESZ, limiting the length of a module's name,  is  set
42       to eight in this release.
43

SEE ALSO

45       fmodsw(9S), queue(9S)
46
47
48       STREAMS Programming Guide
49
50
51
52SunOS 5.11                        26 Nov 2002                  module_info(9S)
Impressum