MODLINKAGE(9S) Data Structures for Drivers MODLINKAGE(9S)

modlinkage - module linkage structure

#include <sys/modctl.h>

illumos DDI specific (illumos DDI)

The modlinkage structure is provided by the module writer to the routines that install, remove, and retrieve information from a module. See _init(9E), _fini(9E), and _info(9E).

int    ml_rev
void   *ml_linkage[4];


Is the revision of the loadable modules system. This must have the value MODREV_1 .


Is a null-terminated array of pointers to linkage structures. Driver modules have only one linkage structure.

add_drv(8), _fini(9E), _info(9E), _init(9E), modldrv(9S), modlstrmod(9S)

Writing Device Drivers

September 18, 1992 OmniOS