]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
mremap.2: Update information about MREMAP_DONTUNMAP restrictions
authorAlex Henrie <alexhenrie24@gmail.com>
Mon, 11 Nov 2024 06:10:19 +0000 (23:10 -0700)
committerAlejandro Colomar <alx@kernel.org>
Tue, 12 Nov 2024 23:36:54 +0000 (00:36 +0100)
Link: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a4609387859f0281951f5e476d9f76d7fb9ab321>
Cc: Brian Geffon <bgeffon@google.com>
Cc: <linux-mm@kvack.org>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Message-ID: <20241111061139.206404-1-alexhenrie24@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/mremap.2

index 53e0bcf2d367fea7642f96ab23dfb98008b83a8b..62bf17b76f945c40fa82e6090aed1b0ced8455f2 100644 (file)
@@ -106,7 +106,13 @@ remaps a mapping to a new address but does not unmap the mapping at
 .IP
 The
 .B MREMAP_DONTUNMAP
-flag can be used only with private anonymous mappings
+flag can be used only with mappings that are not
+.B VM_DONTEXPAND
+or
+.BR VM_MIXEDMAP .
+Before Linux 5.13, the
+.B MREMAP_DONTUNMAP
+flag could be used only with private anonymous mappings
 (see the description of
 .B MAP_PRIVATE
 and