mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
Kernel: Make VirtualRangeAllocator setup functions propagate errors
If an internal allocation failure occurs while setting up a new VRA, we'll now propagate the error to our caller instead of panicking.
This commit is contained in:
parent
0f22ba5bf2
commit
578a576a98
3 changed files with 11 additions and 9 deletions
|
@ -18,8 +18,8 @@ public:
|
|||
VirtualRangeAllocator();
|
||||
~VirtualRangeAllocator() = default;
|
||||
|
||||
void initialize_with_range(VirtualAddress, size_t);
|
||||
void initialize_from_parent(VirtualRangeAllocator const&);
|
||||
ErrorOr<void> initialize_with_range(VirtualAddress, size_t);
|
||||
ErrorOr<void> initialize_from_parent(VirtualRangeAllocator const&);
|
||||
|
||||
ErrorOr<VirtualRange> try_allocate_anywhere(size_t, size_t alignment = PAGE_SIZE);
|
||||
ErrorOr<VirtualRange> try_allocate_specific(VirtualAddress, size_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue