From: Alex Henrie Date: Mon, 11 Nov 2024 06:10:19 +0000 (-0700) Subject: mremap.2: Update information about MREMAP_DONTUNMAP restrictions X-Git-Tag: man-pages-6.10~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d4c9e8405ad382de166b5f739b7026b950e5a9b;p=thirdparty%2Fman-pages.git mremap.2: Update information about MREMAP_DONTUNMAP restrictions Link: Cc: Brian Geffon Cc: Signed-off-by: Alex Henrie Message-ID: <20241111061139.206404-1-alexhenrie24@gmail.com> Signed-off-by: Alejandro Colomar --- diff --git a/man/man2/mremap.2 b/man/man2/mremap.2 index 53e0bcf2d..62bf17b76 100644 --- a/man/man2/mremap.2 +++ b/man/man2/mremap.2 @@ -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