mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 18:32:28 -05:00
Kernel: Make VMObject vend physical page range as a span
Stop exposing the internal data structure used for storing the physical pages and return a Span<RefPtr<PhysicalPage>> instead.
This commit is contained in:
parent
88c8451973
commit
7d096a1287
1 changed files with 2 additions and 2 deletions
|
@ -40,8 +40,8 @@ public:
|
|||
virtual bool is_contiguous() const { return false; }
|
||||
|
||||
size_t page_count() const { return m_physical_pages.size(); }
|
||||
const Vector<RefPtr<PhysicalPage>, 16>& physical_pages() const { return m_physical_pages; }
|
||||
Vector<RefPtr<PhysicalPage>, 16>& physical_pages() { return m_physical_pages; }
|
||||
Span<RefPtr<PhysicalPage> const> physical_pages() const { return m_physical_pages.span(); }
|
||||
Span<RefPtr<PhysicalPage>> physical_pages() { return m_physical_pages.span(); }
|
||||
|
||||
size_t size() const { return m_physical_pages.size() * PAGE_SIZE; }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue