mirror of https://github.com/mkerrisk/man-pages
mremap.2: Minor tweaks to Brian Geffon's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
8debc4f595
commit
452bdc2f02
|
@ -133,18 +133,22 @@ must also be specified.
|
||||||
.TP
|
.TP
|
||||||
.BR MREMAP_DONTUNMAP " (since Linux 5.7)"
|
.BR MREMAP_DONTUNMAP " (since Linux 5.7)"
|
||||||
.\" commit e346b3813067d4b17383f975f197a9aa28a3b077
|
.\" commit e346b3813067d4b17383f975f197a9aa28a3b077
|
||||||
This flag which must be used in conjunction with
|
This flag, which must be used in conjunction with
|
||||||
.B MREMAP_MAYMOVE
|
.BR MREMAP_MAYMOVE ,
|
||||||
remaps a mapping to a new address and it does not unmap the mapping at
|
remaps a mapping to a new address but does not unmap the mapping at
|
||||||
.BR old_address .
|
.IR old_address .
|
||||||
This flag can only be used with private anonymous mappings.
|
.IP
|
||||||
|
The
|
||||||
|
.B MREMAP_DONTUNMAP
|
||||||
|
flag can be used only with private anonymous mappings.
|
||||||
|
.IP
|
||||||
Any access to the range specified at
|
Any access to the range specified at
|
||||||
.BR old_address
|
.IR old_address
|
||||||
after completion will result in an anonymous page fault.
|
after completion will result in an anonymous page fault.
|
||||||
The anonymous page fault will be handled by a
|
The anonymous page fault will be handled by a
|
||||||
.BR userfaultfd (2)
|
.BR userfaultfd (2)
|
||||||
if the range was previously registered on the mapping specified by
|
if the range was previously registered on the mapping specified by
|
||||||
.BR old_address .
|
.IR old_address .
|
||||||
Otherwise, it will be zero filled by the kernel.
|
Otherwise, it will be zero filled by the kernel.
|
||||||
.PP
|
.PP
|
||||||
If the memory segment specified by
|
If the memory segment specified by
|
||||||
|
@ -222,15 +226,15 @@ was specified without also specifying
|
||||||
.BR MREMAP_MAYMOVE ;
|
.BR MREMAP_MAYMOVE ;
|
||||||
.IP *
|
.IP *
|
||||||
.B MREMAP_DONTUNMAP
|
.B MREMAP_DONTUNMAP
|
||||||
was specified with and
|
was specified with an
|
||||||
.BR old_address
|
.IR old_address
|
||||||
that was not private anonymous;
|
that was not private anonymous;
|
||||||
.IP *
|
.IP *
|
||||||
.B MREMAP_DONTUNMAP
|
.B MREMAP_DONTUNMAP
|
||||||
was specified and
|
was specified and
|
||||||
.BR old_size
|
.IR old_size
|
||||||
was not equal to
|
was not equal to
|
||||||
.BR new_size ;
|
.IR new_size ;
|
||||||
.IP *
|
.IP *
|
||||||
\fIold_size\fP was zero and \fIold_address\fP does not refer to a
|
\fIold_size\fP was zero and \fIold_address\fP does not refer to a
|
||||||
shareable mapping (but see BUGS);
|
shareable mapping (but see BUGS);
|
||||||
|
@ -287,7 +291,7 @@ flag may be used to atomically move a mapping while leaving the source
|
||||||
mapped.
|
mapped.
|
||||||
Possible applications for this behavior might be garbage collection or
|
Possible applications for this behavior might be garbage collection or
|
||||||
non-cooperative
|
non-cooperative
|
||||||
.BR userfaultfd (2) .
|
.BR userfaultfd (2).
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Before Linux 4.14,
|
Before Linux 4.14,
|
||||||
if
|
if
|
||||||
|
|
Loading…
Reference in New Issue