summaryrefslogtreecommitdiff
path: root/Kernel/VM/PhysicalRegion.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-21 18:37:47 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-21 18:37:47 +0200
commit90b1354688e988ba1311a5645f631d353fa7ff80 (patch)
tree5619e16c34d3f2f9142c270e2a906614a6d598a6 /Kernel/VM/PhysicalRegion.h
parent77b9fa89dd36fcd56d956667a956ef7f2ee8f963 (diff)
downloadserenity-90b1354688e988ba1311a5645f631d353fa7ff80.zip
AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr.
Diffstat (limited to 'Kernel/VM/PhysicalRegion.h')
-rw-r--r--Kernel/VM/PhysicalRegion.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/VM/PhysicalRegion.h b/Kernel/VM/PhysicalRegion.h
index 7cecc4b365..425a5900a7 100644
--- a/Kernel/VM/PhysicalRegion.h
+++ b/Kernel/VM/PhysicalRegion.h
@@ -10,7 +10,7 @@ class PhysicalRegion : public RefCounted<PhysicalRegion> {
AK_MAKE_ETERNAL
public:
- static Retained<PhysicalRegion> create(PhysicalAddress lower, PhysicalAddress upper);
+ static NonnullRefPtr<PhysicalRegion> create(PhysicalAddress lower, PhysicalAddress upper);
~PhysicalRegion() {}
void expand(PhysicalAddress lower, PhysicalAddress upper);
@@ -23,7 +23,7 @@ public:
unsigned free() const { return m_pages - m_used; }
bool contains(PhysicalPage& page) const { return page.paddr() >= m_lower && page.paddr() <= m_upper; }
- RetainPtr<PhysicalPage> take_free_page(bool supervisor);
+ RefPtr<PhysicalPage> take_free_page(bool supervisor);
void return_page_at(PhysicalAddress addr);
void return_page(PhysicalPage&& page) { return_page_at(page.paddr()); }