Procsyskernelmodprobe file

Each module automatically linked into the kernel has the MOD_AUTOCLEAN flag in the flags field of the module object set. This flag allows automatic unlinking of the module when it is no longer used.

To automatically unlink the module, a system process (like crond ) periodically executes the rmmod external program, passing the -a option to it. The latter program executes the delete_module( ) system call with a null parameter. The corresponding service routine scans the list of module objects and removes all unused modules having the mod_autoclean flag set.

I [email protected] RuBoard

Continue reading here: Appendix C Source Code Structure

Was this article helpful?

0 0