CS 3733 Operating Systems
Reading: Section 3.3.1 and 3.6 of PUP
An operating system manages resources --- processors, memory and I/O so that a process can execute. In the next two lectures, we'll go over the basics of I/O in Unix. We will then talk about I/O management more generally.
open - set up the connection between the device and
the process and return an integer handle to the process for
future reference.
close - remove the association of the handle with
the device.
read - read a block of data from the specified device.
write - write a block of data to the specified device.
ioctl - perform device-specific control.
As a result of the device independent-interface, all devices look (more or less) like files.
open set up the connection?
(PUP 3.3.1)
open prototype.
read and write system calls:
(PUP 3.6)
SKILL: Understand the concept of device-independent I/O.