1modlinkage(9S) Data Structures for Drivers modlinkage(9S)
2
3
4
6 modlinkage - module linkage structure
7
9 #include <sys/modctl.h>
10
11
13 Solaris DDI specific (Solaris DDI)
14
16 The modlinkage structure is provided by the module writer to the rou‐
17 tines that install, remove, and retrieve information from a module. See
18 _init(9E), _fini(9E), and _info(9E).
19
21 int ml_rev
22 void *ml_linkage[4];
23
24
25 ml_rev Is the revision of the loadable modules system. This
26 must have the value MODREV_1 .
27
28
29 ml_linkage Is a null-terminated array of pointers to linkage struc‐
30 tures. Driver modules have only one linkage structure.
31
32
34 add_drv(1M), _fini(9E), _info(9E), _init(9E), modldrv(9S), modlstr‐
35 mod(9S)
36
37
38 Writing Device Drivers
39
40
41
42SunOS 5.11 18 Sep 1992 modlinkage(9S)