mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:57:45 +00:00
Kernel: Move sys$munmap functionality into a helper method
This commit is contained in:
parent
b9d693665b
commit
95c2166ca9
5 changed files with 123 additions and 94 deletions
|
@ -33,6 +33,8 @@ public:
|
|||
|
||||
void dump_regions();
|
||||
|
||||
KResult unmap_mmap_range(VirtualAddress, size_t);
|
||||
|
||||
Optional<Range> allocate_range(VirtualAddress, size_t, size_t alignment = PAGE_SIZE);
|
||||
|
||||
KResultOr<Region*> allocate_region_with_vmobject(const Range&, NonnullRefPtr<VMObject>, size_t offset_in_vmobject, StringView name, int prot, bool shared);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue