Computers cannot function properly without input devices such as mice and keyboards and output devices such as monitors and printers.
The
I/O system
exchanges information between these devices and the operating system.
This article explains I/O hardware and how the OS controls and manages it, using practical examples.
Applications request I/O from the operating system rather than handling it directly.
These requests take the form of
system calls
.
Examples include read(), write(), open(), and close().
The OS passes the request to the appropriate driver and returns the result to the application.
Developers can therefore perform I/O without knowing the device's internal details.
We examined the basic structure of I/O hardware and how operating systems control it.
It is important to understand how system calls, drivers, DMA, and STREAMS connect in a concrete flow.
The next post covers