mirror of https://github.com/mkerrisk/man-pages
mremap.2: Move a paragraph on MREMAP_DONTUNMAP from NOTES to DESCRIPTION
I think things read slightly easier, if all of the info on MREMAP_DONTUNMAP is in one place. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
f15e32e3b9
commit
4737f0d145
|
@ -140,6 +140,14 @@ handler
|
|||
if the address is in a range previously registered with
|
||||
.BR userfaultfd (2).
|
||||
Otherwise, the kernel allocates a zero-filled page to handle the fault.
|
||||
.IP
|
||||
The
|
||||
.BR MREMAP_DONTUNMAP
|
||||
flag may be used to atomically move a mapping while leaving the source
|
||||
mapped.
|
||||
Possible applications for this behavior might be garbage collection or
|
||||
non-cooperative
|
||||
.BR userfaultfd (2).
|
||||
.PP
|
||||
If the memory segment specified by
|
||||
.I old_address
|
||||
|
@ -290,14 +298,6 @@ with
|
|||
.B ENOMEM
|
||||
if the area cannot be populated.
|
||||
.PP
|
||||
The
|
||||
.BR MREMAP_DONTUNMAP
|
||||
flag may be used to atomically move a mapping while leaving the source
|
||||
mapped.
|
||||
Possible applications for this behavior might be garbage collection or
|
||||
non-cooperative
|
||||
.BR userfaultfd (2).
|
||||
.PP
|
||||
Prior to version 2.4, glibc did not expose the definition of
|
||||
.BR MREMAP_FIXED ,
|
||||
and the prototype for
|
||||
|
|
Loading…
Reference in New Issue