mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
Kernel: Make MM.commit_user_physical_pages() return KResultOr
..and use TRY() at call sites. :^)
This commit is contained in:
parent
98dc08fe56
commit
2f790cf78f
3 changed files with 11 additions and 20 deletions
|
@ -171,7 +171,7 @@ public:
|
|||
Yes
|
||||
};
|
||||
|
||||
Optional<CommittedPhysicalPageSet> commit_user_physical_pages(size_t page_count);
|
||||
KResultOr<CommittedPhysicalPageSet> commit_user_physical_pages(size_t page_count);
|
||||
void uncommit_user_physical_pages(Badge<CommittedPhysicalPageSet>, size_t page_count);
|
||||
|
||||
NonnullRefPtr<PhysicalPage> allocate_committed_user_physical_page(Badge<CommittedPhysicalPageSet>, ShouldZeroFill = ShouldZeroFill::Yes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue