#include <sys/modctl.h>int mod_install(struct modlinkage *modlinkage);
Solaris DDI specific (Solaris DDI).
Pointer to the loadable module's modlinkage structure which describes what type(s) of module elements are included in this loadable module.
Pointer to the modinfo structure passed to _info(9E).
mod_install() must be called from a module's _init(9E) routine.
mod_remove() must be called from a module's _fini(9E) routine.
mod_info() must be called from a module's _info(9E) routine.
mod_install() and mod_remove() return 0 upon success and non-zero on failure. mod_info() returns a non-zero value on success and 0 upon failure.
See _init(9E) for an example that uses these functions.