Returns a function pointer to a kernel module's entry point.
Item | Description |
---|---|
kmid | Specifies the kernel module ID of the object file for which the entry point is requested. This parameter is the kernel module ID returned by the kmod_load kernel service. |
flags | Flag specifying
entry point options. The following flag is
defined:
|
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.