]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2/mremap.2: Explicitly document the simple move operation
authorLorenzo Stoakes <lorenzo.stoakes@oracle.com>
Mon, 11 Aug 2025 14:59:37 +0000 (15:59 +0100)
committerAlejandro Colomar <alx@kernel.org>
Tue, 19 Aug 2025 11:09:05 +0000 (13:09 +0200)
In preparation for discussing newly introduced mremap() behaviour to
permit the move of multiple mappings at once, add a section to the
this manual page to describe these operations in general.

Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Message-ID: <0a5d0d6e9f75e8e2de05506f73c41b069d77de36.1754924278.git.lorenzo.stoakes@oracle.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/mremap.2

index 2168ca728be3076fdd4387d9f785017a0b53f834..4e3c8e54e230f8773e256229b0c87469b53ea2ae 100644 (file)
@@ -25,6 +25,20 @@ moving it at the same time (controlled by the
 argument and
 the available virtual address space).
 .P
+Mappings can also simply be moved
+(without any resizing)
+by specifying equal
+.I old_size
+and
+.I new_size
+and using the
+.B MREMAP_FIXED
+flag
+(see below).
+The
+.B MREMAP_DONTUNMAP
+flag may also be specified.
+.P
 .I old_address
 is the old address of the virtual memory block that you
 want to expand (or shrink).