summaryrefslogtreecommitdiff
path: root/Kernel/VM/VMObject.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2020-03-07 19:24:41 +0200
committerAndreas Kling <kling@serenityos.org>2020-03-08 14:13:30 +0100
commitd6e122fd3a2719bdd532523435a73c7a04fa9fc3 (patch)
tree23d1d656f10deec78275edb1ad1fdadad9c4d9a9 /Kernel/VM/VMObject.h
parentb066586355581f34ad9981bb6974066f8eb40446 (diff)
downloadserenity-d6e122fd3a2719bdd532523435a73c7a04fa9fc3.zip
Kernel: Allow contiguous allocations in physical memory
For that, we have a new type of VMObject, called ContiguousVMObject, that is responsible for allocating contiguous physical pages.
Diffstat (limited to 'Kernel/VM/VMObject.h')
-rw-r--r--Kernel/VM/VMObject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/VM/VMObject.h b/Kernel/VM/VMObject.h
index c108ea95a6..79ee9dadad 100644
--- a/Kernel/VM/VMObject.h
+++ b/Kernel/VM/VMObject.h
@@ -54,6 +54,7 @@ public:
virtual bool is_inode() const { return false; }
virtual bool is_shared_inode() const { return false; }
virtual bool is_private_inode() const { return false; }
+ virtual bool is_contiguous() const { return false; }
size_t page_count() const { return m_physical_pages.size(); }
const FixedArray<RefPtr<PhysicalPage>>& physical_pages() const { return m_physical_pages; }