Please enable JavaScript.
Coggle requires JavaScript to display documents.
Managing Kernel Services (Kernel Options (rw (Mount the root device in…
Managing Kernel Services
Linux Kernel
Kernel
It is the core of an operating system. All other components rely on it. It is loaded first and remains in the main memory. The kernel manages filesystem access, memory, processes, devices, and resource allocation on a system.
Is the core constituent of the Linux operating system, manages all other resources on the system. It performs functions such as sharing resources and allocating memory, input and output operations, security settings, and user access.
Kernel Layers
-
Process management
Handles different processes by allocating separate execution space on the processor and ensuring that the running of one process does not interfere with other processes.
Memory management
Manages the computer’s memory, which is one of the complex tasks performed by the kernel.
Customize Kernel Modules
Kernel Modules
A kernel module is a system-level function that extends the functionality of the kernel. It can be dynamically loaded into the kernel or unloaded from the kernel when required.
-
Managing Utilities
A kernel module managing utility enables you to view, load, unload, or modify kernel modules.
lsmod: Display the currently loaded kernel modules, their sizes, usage details, and their dependent modules.
Kernel Options
Kernel options allow you to pass parameters to the kernel at the time of booting a system. These options are used to customize the kernel to suit the individual system or to troubleshoot booting issues.
-
-
-
sysctl Command
The sysctl command is used to view or set the kernel parameters at runtime. It has various options. Persistent kernel settings are added in the sysctl.conf file.
Create initrd image
initrd refers to the initial ramdisk that is temporarily mounted as the root filesystem for loading startup programs and modules. The ramdisk loads along with the kernel, which controls its functionality.
The initrd image is an archived file containing all the essential files that are required for boot- ing the operating system.
-
Manage Device Drivers
A device driver is a software program that enables a computer’s operating system to identify the characteristics and functions of a hardware device, communicate with it, and control its operations.
A device node is an access point for device drivers; it is used while mapping service requests with device access. It represents a particular hardware resource in a device tree.
A device tree is a structure that lists all hardware devices installed on a system and assigns device nodes to them.