Returns a function pointer to a kernel module's entry point.
#include <sys/types.h> #include <sys/errno.h> #include <sys/ldr.h>
void (*(kmod_entrypt (kmid, flags)))( ) mid_t kmid; uint flags;
The kmod_entrypt kernel service obtains a function pointer to a specified module's entry point. This function pointer is typically used to invoke a routine in the module for initializing or terminating its functions. Initialization and termination occurs after loading and before unloading. The module for which the entry point is requested is specified by the kernel module ID represented by the kmid parameter.
The kmod_entrypt kernel service can be called from the process environment only.
A nonnull function pointer indicates a successful completion. This function pointer contains the module's entry point. A null function pointer indicates an error.
The kmod_entrypt kernel service is part of Base Operating System (BOS) Runtime.
The kmod_load kernel service.
Kernel Extension and Device Driver Management Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.