How operating systems talk to hardware: device drivers, interrupts, I/O, plug and play and driver models.
22 terms
A block device is an operating system abstraction for storage hardware that reads and writes data in fixed-size blocks with random access and buffering.
A bus driver is the operating system driver that manages a hardware bus such as PCI Express or USB, enumerating attached devices and exposing them to…
A character device is a kernel interface that moves data as an unstructured byte stream, used for terminals, serial ports, sensors and similar hardware.
Device enumeration is the process by which an operating system discovers attached hardware, reads its identity and resources, and binds the right driver.
A device file is a special file system entry that lets programs reach a hardware or kernel device through ordinary open, read, write and ioctl calls.
A device tree is a data structure that describes non-discoverable hardware to an operating system kernel, mainly on ARM, RISC-V and embedded boards.
Direct memory access lets devices such as disks and network cards move data to and from main memory without the CPU copying each byte, freeing the…
A driver stack is the layered chain of drivers that handles I/O requests for one device, from filter drivers through the function driver to the bus…
A filter driver is an optional driver layered into a device stack that inspects, modifies or blocks I/O requests on their way to or from another…
A hardware abstraction layer (HAL) is the operating system code that hides platform-specific hardware details behind a uniform interface for the kernel.
An I/O scheduler is the kernel component that orders, merges and dispatches block device requests to balance throughput, latency and fairness.
Interrupt latency is the delay between a hardware device raising an interrupt and the operating system starting the code that services it.
An interrupt request (IRQ) is a hardware signal that asks the processor to pause current work so the operating system can service a device.
An interrupt service routine is the driver or kernel function that runs when hardware raises an interrupt, handling the device event quickly and safely.
An interrupt vector table (IVT) is a memory structure that maps each interrupt or exception number to the address of the routine that handles it.
Interrupt-driven I/O lets a device signal the CPU with an interrupt when it is ready, so the processor does other work instead of polling the device.
A kernel-mode driver is operating system code that runs with full kernel privileges to control hardware, handle interrupts and move device data.
Memory-mapped I/O (MMIO) lets a processor control hardware by reading and writing device registers that appear at ordinary memory addresses.
Message signaled interrupts let a PCI or PCIe device raise an interrupt by writing a small data value to a special memory address instead of using…
Plug and play (PnP) lets an operating system detect new hardware, assign its resources and load a matching driver automatically, with no manual setup.
Port-mapped I/O is a hardware access method in which a CPU reaches device registers through a separate I/O address space using dedicated port instructions.
A user-mode driver is device driver code that runs as an ordinary process outside the kernel, so its crashes cannot bring down the operating system.