mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
Kernel: Add MemoryManager::copy_physical_page()
This is a handy helper that copies out the full contents of a physical page into a caller-provided buffer. It uses quickmapping internally (and takes the MM lock for the duration.)
This commit is contained in:
parent
c4a78633b0
commit
f2d5548d7a
2 changed files with 10 additions and 0 deletions
|
@ -240,6 +240,8 @@ public:
|
|||
PhysicalPageEntry& get_physical_page_entry(PhysicalAddress);
|
||||
PhysicalAddress get_physical_address(PhysicalPage const&);
|
||||
|
||||
void copy_physical_page(PhysicalPage&, u8 page_buffer[PAGE_SIZE]);
|
||||
|
||||
private:
|
||||
MemoryManager();
|
||||
~MemoryManager();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue