From 74336e8c040b8c0ae39b7d1a9944c592bbe26344 Mon Sep 17 00:00:00 2001 From: Anhad Singh Date: Tue, 10 Dec 2024 01:03:06 +1100 Subject: [PATCH] feat(mremap): add `KEEP_OLD` flag Signed-off-by: Anhad Singh --- src/flag.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flag.rs b/src/flag.rs index 6f7a6a44d0..f0b2f9a0e0 100644 --- a/src/flag.rs +++ b/src/flag.rs @@ -311,6 +311,9 @@ bitflags! { pub struct MremapFlags: usize { const FIXED = 1; const FIXED_REPLACE = 3; + /// Alias's memory region at `old_address` to `new_address` such that both regions share + /// the same frames. + const KEEP_OLD = 1 << 2; // TODO: MAYMOVE, DONTUNMAP } }