Spring 2021
Instructors Roz Cyrus and Jerry Cain
Pre Lecture 04: Filesystem Design, System Calls, and Introduction to Multiprocessing
PDF
read
, write
and close
calls. Internally, that descriptor is an index into the descriptor table.mode
tracks whether we're reading, writing, or both. cursor
tracks a position within the file payload. refcount
tracks the number of descriptors across all processes that refer to that entry. (We'll discuss the vnode
field in a moment.)open(filename, O_RDONLY)
from that process might result in the above.bash
shell calls make
, which itself calls g++
, each of them inserts text into the same terminal window.None of these
kernel-resident
data structures
are visible to
users. Note the
filesystem itself
is a completely
different
component, and
that filesystem
inodes of open
files are loaded into vnode table entries. The yellow inode in the vnode is an in-memory replica of the yellow sliver of memory in the filesystem.