This file contains functions to load and unload this package into the kernel. More...
Functions | |
int | kernelmodule_init (void) |
This function is executed when this module is inserted into the kernel (usually by a modprobe command). | |
void | kernelmodule_exit (void) |
This function is executed when this module is removed from the kernel (usually by a rmmod command). |
This file contains functions to load and unload this package into the kernel.
The user has the commands modprobe and rmmod to enter and release a module into/from the kernel. These commands trigger the kernel to execute the functions annotated by the module_init and module_exit macro's. In this package these are kernelmodule_init() and kernelmodule_exit() functions.
void kernelmodule_exit | ( | void | ) |
This function is executed when this module is removed from the kernel (usually by a rmmod command).
This function is announced to the kernel via the macro module_exit as another entry point for this package. The kernel uses this entry point when the user rmmod's this package. This function should clean up, so that the package safely can be removed from the kernel.
This function delegates this clean up, by calling elomax_driver_destruct().
int kernelmodule_init | ( | void | ) |
This function is executed when this module is inserted into the kernel (usually by a modprobe command).
This function is announced to the kernel via the macro module_init as the entry point for this package. The kernel executes this function when the user modprobe's this package.
This function calls elomax_driver_construct() which does the actual work.