summaryrefslogtreecommitdiff
path: root/Kernel/VM/Region.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-03 20:37:03 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-03 21:11:08 +0100
commit2cfc43c9821e1d20c0a320d069cf21f7a5443f6d (patch)
tree391718db3142c15deb8b2dadecf34862ff9fe484 /Kernel/VM/Region.h
parent9e03f3ce207a1821519b3872b821d5ef048b97f6 (diff)
downloadserenity-2cfc43c9821e1d20c0a320d069cf21f7a5443f6d.zip
Kernel: Move region map/unmap operations into the Region class
The more Region can take care of itself, the better.
Diffstat (limited to 'Kernel/VM/Region.h')
-rw-r--r--Kernel/VM/Region.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Kernel/VM/Region.h b/Kernel/VM/Region.h
index f7244b1e9c..6c90415bda 100644
--- a/Kernel/VM/Region.h
+++ b/Kernel/VM/Region.h
@@ -114,6 +114,13 @@ public:
m_access &= ~Access::Write;
}
+ void map(Process&);
+ enum class ShouldDeallocateVirtualMemoryRange {
+ No,
+ Yes,
+ };
+ void unmap(ShouldDeallocateVirtualMemoryRange = ShouldDeallocateVirtualMemoryRange::Yes);
+
void remap_page(size_t index);
// For InlineLinkedListNode