Professional Documents
Culture Documents
Device Driver Modules Are Used To Control A Particular: IO System IO System
Device Driver Modules Are Used To Control A Particular: IO System IO System
The operating system must be able to control a large Device driver modules are used to control a particular
variety of IO devices. These devices vary greatly in device. These drivers will either be shipped with the
functionality and speed. The IO sub-system of the device or they will be part of the operating system’s
kernel manages these devices. distribution.
Hardware
1 2
human-interface devices (screen, keyboard, mouse, A controller is a piece of electronics that operates:
microphones).
a port,
a bus, or
a device.
3 4
IO Hardware IO System Controller IO System
Keyboard Serial port CPU The processor typically communicates with the con-
troller via registers such as:
cache
special IO instructions, or
PC bus structure
5 6
Depending on the type of IO required different ap- Although there is a large variety of devices it is useful
proaches may be used to coordinate the IO. These
for user programs to access the IO through a stan-
include:
dard interface. This abstracts away the details of dif-
ferences in IO devices.
Polling — an approach that repeatedly checks the
status register of a device’s controller to perform The types of devices includes:
an IO operation.
character-stream or block,
sequential or random-access,
Interrupts — an interrupt is raised by a device and
caught by the CPU, this is dealt with by a device
synchronous or asynchronous,
driver pointed to by the interrupt vector. This en-
sharable or dedicated,
ables the computer to deal with asynchronous or
urgent events.
The kernel’s IO sub-system provides numerous ser- Performance of the IO sub-system is a critical issue
vices. These include: in modern computer systems as they are required to
perform vast amounts of IO.
IO scheduling,
This IO places heavy demands on:
buffering,
the device driver code,
spooling,
process scheduling,
error handling,
interrupt-handling mechanisms, and
device reservation, and
9 10
Performance IO System
11