mmap.2: Minor wording fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-07-22 09:08:19 +02:00
parent 88b001ffe8
commit 911f1c7ace
1 changed files with 9 additions and 6 deletions

View File

@ -266,15 +266,18 @@ Mark the mmaped region to be locked in the same way as
This implementation will try to populate (prefault) the whole range but
the mmap call doesn't fail with
.B ENOMEM
if this fails. Therefore major faults might happen later on. So the semantic
is not as strong as
if this fails.
Therefore major faults might happen later on.
So the semantic is not as strong as
.BR mlock (2).
One should use
.BR mmap (2)
plus
.BR mlock (2)
should be used when major faults are not acceptable after the initialization
of the mapping.
This flag is ignored in older kernels.
when major faults are not acceptable after the initialization of the mapping.
The
.BR MAP_LOCKED
flag is ignored in older kernels.
.\" If set, the mapped pages will not be swapped out.
.TP
.BR MAP_NONBLOCK " (since Linux 2.5.46)"