summaryrefslogtreecommitdiff
path: root/Kernel/VM/Region.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-01 11:02:22 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-01 11:23:10 +0100
commit88b334135b37304e76bd2fbd4745001138563a46 (patch)
tree3ee259cff28e31f69f5ca1229d07441b4e006fd4 /Kernel/VM/Region.h
parentfddc3c957b2302c9e166c709dedcde09945318e3 (diff)
downloadserenity-88b334135b37304e76bd2fbd4745001138563a46.zip
Kernel: Remove some Region construction helpers
It's now up to the caller to provide a VMObject when constructing a new Region object. This will make it easier to handle things going wrong, like allocation failures, etc.
Diffstat (limited to 'Kernel/VM/Region.h')
-rw-r--r--Kernel/VM/Region.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/Kernel/VM/Region.h b/Kernel/VM/Region.h
index 60f2cd4d8b..075079c7bd 100644
--- a/Kernel/VM/Region.h
+++ b/Kernel/VM/Region.h
@@ -55,9 +55,7 @@ public:
Execute = 4,
};
- static NonnullOwnPtr<Region> create_user_accessible(const Range&, const StringView& name, u8 access, bool cacheable = true);
static NonnullOwnPtr<Region> create_user_accessible(const Range&, NonnullRefPtr<VMObject>, size_t offset_in_vmobject, const StringView& name, u8 access, bool cacheable = true);
- static NonnullOwnPtr<Region> create_kernel_only(const Range&, const StringView& name, u8 access, bool cacheable = true);
static NonnullOwnPtr<Region> create_kernel_only(const Range&, NonnullRefPtr<VMObject>, size_t offset_in_vmobject, const StringView& name, u8 access, bool cacheable = true);
~Region();
@@ -160,7 +158,6 @@ public:
Region* m_prev { nullptr };
// NOTE: These are public so we can make<> them.
- Region(const Range&, const String&, u8 access, bool cacheable);
Region(const Range&, NonnullRefPtr<VMObject>, size_t offset_in_vmobject, const String&, u8 access, bool cacheable);
private: