Skip to content

Commit

Permalink
talk about anon mapping only after it has been introduced
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Nov 5, 2023
1 parent 88d774a commit 29d30f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1152,9 +1152,6 @@
be aligned correctly (also when using \texttt{MAP\_FIXED} the \texttt{addr}).
Last page after the end of file is padded with zeroes and this section is
never written back to the file.
\item It is possible to share anonymous mapping between processes using
\texttt{fork()}. The only alternative is shared memory established using
\texttt{shmat}.
\item Access to the mapped region beyond the existing page of a mapped object
causes \texttt{SIGBUS} or \texttt{SIGSEGV} signal.
This is not universally true, see example \example{mmap/sigsegv.c}.
Expand All @@ -1173,6 +1170,9 @@
\item in IRIX it is possible to use \texttt{MAP\_AUTOGROW} that will
automatically grow mapped object when accessing beyond its current end.
\end{itemize}
\item It is possible to share anonymous mapping between processes using
\texttt{fork()}. The only alternative is shared memory established using
\texttt{shmat}.
\item Example of a system command using memory mapped files is \texttt{cat(1)}
on Solaris (for regular files). Using mapped memory is more efficient than
calling \texttt{read} repeatedly, saving the overhead necessary for switching to
Expand Down

0 comments on commit 29d30f2

Please sign in to comment.