The kernel-defined external functions are also resolved. We shall later take a more detailed look at the life cycle of the module. Simple Module Program Let us now program a simple module to review its life cycle. In the above, commands insmod, lsmod and rmmod are used to load and unload modules to the Linux kernel. The details are discussed in the following section.
Lets now discuss the demand loading of the module by the kernel, dynamically .
To illustrate this with an example, lets mount a NTFS partition in the Linux system. Then the partition is mounted for the use. The kerneld is the normal user process having exclusive superuser privileges. While loading the module, the kerneld calls modprobe and insmod to load the required module. The insmod utility should able to access the requested module.