diff --git a/man2/mmap.2 b/man2/mmap.2 index e65ac2550..4fba93556 100644 --- a/man2/mmap.2 +++ b/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)"