mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
Kernel+LibC: Allow sys$mmap() callers to specify address alignment
This is exposed via the non-standard serenity_mmap() call in userspace.
This commit is contained in:
parent
02e199a9cb
commit
31e1af732f
7 changed files with 66 additions and 30 deletions
|
@ -84,7 +84,7 @@ public:
|
|||
void initialize_with_range(VirtualAddress, size_t);
|
||||
void initialize_from_parent(const RangeAllocator&);
|
||||
|
||||
Range allocate_anywhere(size_t);
|
||||
Range allocate_anywhere(size_t, size_t alignment = PAGE_SIZE);
|
||||
Range allocate_specific(VirtualAddress, size_t);
|
||||
void deallocate(Range);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue