kernel mode
The privileged processor mode the kernel runs in, where code can touch hardware and all memory directly.
In more detail
Ordinary programs run in a restricted user mode and cannot reach devices or other programs' memory on their own. When a program needs privileged work it makes a system call, the processor switches into kernel mode, the kernel does the work, and control returns to the program. This hardware-enforced boundary is what makes the kernel the mediator for every process.
Related terms
- kernel — The core of an operating system that controls the hardware and decides what every program is allowed to do.
- system call — A request a program makes to the kernel, such as open this file or start a new process.
- userland — Everything in an operating system except the kernel: the libraries, tools, shell and files programs use.
Taught in
- What A Kernel Does, And What It Refuses To Do — Linux Fundamentals & Systems Administration