summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-04-03 21:59:48 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-03 21:59:48 +0200
commit9e1da1f4f5d7b13857317c964a3d68f3836863bb (patch)
tree0bcfc77aebb31db7f4e8e8c4069143df95892227 /Kernel
parent8b01789ec4bec940b60d0d2787487004ac1740b2 (diff)
downloadserenity-9e1da1f4f5d7b13857317c964a3d68f3836863bb.zip
Kernel: Add a little explainer comment above RegionTree
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Memory/RegionTree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/Memory/RegionTree.h b/Kernel/Memory/RegionTree.h
index ccd42a8bdf..8fe7f8ec8b 100644
--- a/Kernel/Memory/RegionTree.h
+++ b/Kernel/Memory/RegionTree.h
@@ -20,6 +20,9 @@ enum class RandomizeVirtualAddress {
Yes,
};
+// RegionTree represents a virtual address space.
+// It is used by MemoryManager for kernel VM and by AddressSpace for user VM.
+// Regions are stored in an intrusive data structure and there are no allocations when interacting with it.
class RegionTree {
AK_MAKE_NONCOPYABLE(RegionTree);
AK_MAKE_NONMOVABLE(RegionTree);