Linux

What is a Linux kernel module and how do you load a new module?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

A Linux kernel module is a piece of code that can be dynamically loaded into the kernel to extend its functionality. These modules are typically used to add support for hardware devices, filesystems, or system calls. The kernel itself is monolithic, but with modules, its capabilities can be extended without having to reboot the system or recompile the entire kernel.