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
|
This implementation will try to populate (prefault) the whole range but
|
||||||
the mmap call doesn't fail with
|
the mmap call doesn't fail with
|
||||||
.B ENOMEM
|
.B ENOMEM
|
||||||
if this fails. Therefore major faults might happen later on. So the semantic
|
if this fails.
|
||||||
is not as strong as
|
Therefore major faults might happen later on.
|
||||||
|
So the semantic is not as strong as
|
||||||
.BR mlock (2).
|
.BR mlock (2).
|
||||||
|
One should use
|
||||||
.BR mmap (2)
|
.BR mmap (2)
|
||||||
|
plus
|
||||||
.BR mlock (2)
|
.BR mlock (2)
|
||||||
should be used when major faults are not acceptable after the initialization
|
when major faults are not acceptable after the initialization of the mapping.
|
||||||
of the mapping.
|
The
|
||||||
This flag is ignored in older kernels.
|
.BR MAP_LOCKED
|
||||||
|
flag is ignored in older kernels.
|
||||||
.\" If set, the mapped pages will not be swapped out.
|
.\" If set, the mapped pages will not be swapped out.
|
||||||
.TP
|
.TP
|
||||||
.BR MAP_NONBLOCK " (since Linux 2.5.46)"
|
.BR MAP_NONBLOCK " (since Linux 2.5.46)"
|
||||||
|
|
Loading…
Reference in New Issue