mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr.
This commit is contained in:
parent
77b9fa89dd
commit
90b1354688
188 changed files with 562 additions and 562 deletions
|
@ -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()); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue