Skip to content

Commit 039db38

Browse files
committed
posix_madvise()
1 parent 7640a21 commit 039db38

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

proc.tex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,10 +1221,11 @@
12211221
mapped as well will see the memory writes immediately.
12221222
\item memory mapping and setting access rights is used by the Electric Fence
12231223
library which is used for error detection on dynamic memory use.
1224-
\item There is also \texttt{madvise} system call that allows the process
1225-
to give the kernel some hints in how it is going to access the (mapped) memory
1226-
in given address range. E.g. the \texttt{MADV\_SEQUENTIAL} advice implies
1227-
the pages should be read-ahead and then freed once they are accessed.
1224+
\item There is also \texttt{madvise} system call (and its SUS compliant variant
1225+
\texttt{posix\_madvise} that allows the process to give the kernel some hints
1226+
on how it is going to access the (mapped) memory in given address range.
1227+
E.g. the \texttt{MADV\_SEQUENTIAL} advice implies the pages should be read-ahead
1228+
and then freed once they are accessed.
12281229
\end{itemize}
12291230

12301231
%%%%%

0 commit comments

Comments
 (0)