Manual page for mod_install(9F)
mod_install, mod_remove, mod_info - add, remove or query a loadable module
SYNOPSIS
#include <sys/modctl.h>
int mod_install(struct modlinkage *modlinkage);
int mod_remove(struct modlinkage *modlinkage);
int mod_info(struct modlinkage *modlinkage, struct modinfo *modinfo);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
ARGUMENTS
- modlinkage
-
Pointer to the loadable module's modlinkage structure which describes
what type(s) of module elements are included in this loadable module.
- modinfo
-
Pointer to the
modinfo
structure passed to
_info.9e
DESCRIPTION
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.
RETURN VALUES
mod_install()
and
mod_remove()
return
0
on success and non-zero on failure.
mod_info()
returns a non-zero value on success and
0
on failure.
EXAMPLES
See
_init.9e
for an example describing the usage of these functions.
SEE ALSO
_fini.9e
_info.9e
_init.9e
modldrv.9s
modlinkage.9s
modlstrmod.9s
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97