Skip to content

Commit 4bc6521

Browse files
author
Vladimir Kotal
committed
better explanation of the system file table
1 parent 8034d6e commit 4bc6521

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

file-api.tex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,13 @@
5656
\begin{itemize}
5757
\item This is a simplified view of the kernel tables that deal with files. It
5858
is modeled after a similar picture in [Bach]. Today it is more complicated but
59-
the main idea stays. See the next slide for how it may look in present time
60-
systems.
59+
the main idea stays.
6160
\item Each process on the system has its \emph{file descriptor table}.
62-
\item Slots in that table points to the \emph{system file table}. There is
61+
\item Slots in that table point to the \emph{system file table}. There is
6362
only one such a table in kernel. This table carries the opened file mode and
64-
also the \emsl{current file position.}
63+
also the \emsl{current file position.} Each \texttt{open} call will create
64+
new entry in the table. However, file descriptor duplication or inheritance
65+
will lead to sharing of the slots.
6566
\item From the system file table, it is pointed to the \emph{system inode
6667
table}. Nowadays the table contains so called \emph{vnodes} -- \emph{virtual
6768
nodes} but that is not relevant for us now. For more info, see page

0 commit comments

Comments
 (0)