Fig. 11.6.1 shows this calling of a system subroutine via a TRP. The call is equivalent to the C version of the UNIX system call read: n = read(fd, buf, m); which requests the operating system to read up to m bytes from the I/O device pointed to by fd and put it into the character array buf. |