linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mremap.2: Update information about MREMAP_DONTUNMAP restrictions
@ 2024-11-05  4:16 Alex Henrie
  2024-11-05 11:50 ` Alejandro Colomar
  2024-11-11  6:10 ` [PATCH man-pages v2] " Alex Henrie
  0 siblings, 2 replies; 5+ messages in thread
From: Alex Henrie @ 2024-11-05  4:16 UTC (permalink / raw)
  To: linux-man, bgeffon, linux-mm; +Cc: Alex Henrie

See "mm: extend MREMAP_DONTUNMAP to non-anonymous mappings":
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a4609387859f0281951f5e476d9f76d7fb9ab321

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
---
 man/man2/mremap.2 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/man/man2/mremap.2 b/man/man2/mremap.2
index 53e0bcf2d..b99ab9492 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 only be used with mappings that are not
+.BR 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
-- 
2.47.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-11-12 23:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-05  4:16 [PATCH] mremap.2: Update information about MREMAP_DONTUNMAP restrictions Alex Henrie
2024-11-05 11:50 ` Alejandro Colomar
2024-11-11  6:07   ` Alex Henrie
2024-11-11  6:10 ` [PATCH man-pages v2] " Alex Henrie
2024-11-12 23:35   ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox