mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
Kernel: Move region map/unmap operations into the Region class
The more Region can take care of itself, the better.
This commit is contained in:
parent
9e03f3ce20
commit
2cfc43c982
5 changed files with 42 additions and 39 deletions
|
@ -114,6 +114,13 @@ public:
|
|||
m_access &= ~Access::Write;
|
||||
}
|
||||
|
||||
void map(Process&);
|
||||
enum class ShouldDeallocateVirtualMemoryRange {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
void unmap(ShouldDeallocateVirtualMemoryRange = ShouldDeallocateVirtualMemoryRange::Yes);
|
||||
|
||||
void remap_page(size_t index);
|
||||
|
||||
// For InlineLinkedListNode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue