device driver
Kernel code that knows how to operate one kind of hardware and presents it to the rest of the system through a standard interface.
In more detail
Drivers are what let the same open, read and write calls work on very different hardware. They can be built into the kernel or loaded as modules, and early boot needs the storage drivers that let the kernel reach the root filesystem. The initramfs exists largely to supply those drivers in time.
Related terms
- kernel — The core of an operating system that controls the hardware and decides what every program is allowed to do.
- device node — A special file, usually under /dev, that stands for a device so programs can open, read and write it like a file.
- sysfs — A virtual filesystem mounted at /sys where the kernel exposes devices, drivers and their settings as files.
- initramfs — A small temporary root filesystem, loaded into memory with the kernel, that holds the drivers and tools needed to find and mount the real root filesystem.
Taught in
- Everything Is A File: proc, sys And dev — Linux Fundamentals & Systems Administration
- Booting: GRUB, The Kernel Command Line And initramfs — Linux Fundamentals & Systems Administration