mirror of https://github.com/mkerrisk/man-pages
mmap.2: Minor wording fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
88b001ffe8
commit
911f1c7ace
15
man2/mmap.2
15
man2/mmap.2
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue