mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:27:34 +00:00
Kernel: Add RegionTree::remove(Region&)
This allows clients to remove a region from the tree without reaching into the RegionTree internals.
This commit is contained in:
parent
4b5a9bab34
commit
da7ea2556e
4 changed files with 10 additions and 6 deletions
|
@ -52,6 +52,8 @@ public:
|
|||
// FIXME: Access the region tree through a SpinlockProtected or similar.
|
||||
RecursiveSpinlock& get_lock() const { return m_lock; }
|
||||
|
||||
bool remove(Region&);
|
||||
|
||||
private:
|
||||
ErrorOr<VirtualRange> allocate_range_anywhere(size_t size, size_t alignment = PAGE_SIZE);
|
||||
ErrorOr<VirtualRange> allocate_range_specific(VirtualAddress base, size_t size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue