diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-01 11:02:22 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-01 11:23:10 +0100 |
commit | 88b334135b37304e76bd2fbd4745001138563a46 (patch) | |
tree | 3ee259cff28e31f69f5ca1229d07441b4e006fd4 /Kernel/VM/Region.h | |
parent | fddc3c957b2302c9e166c709dedcde09945318e3 (diff) | |
download | serenity-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.h | 3 |
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: |