mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 03:42:07 +00:00
Kernel: Allow release of a specific amount of of clean pages
Previously, we could only release *all* clean pages. This patch makes it possible to release a specific amount of clean pages. If the attempted number of pages to release is more than the amount of clean pages, all clean pages will be released.
This commit is contained in:
parent
072dde9387
commit
09d0fae2c6
2 changed files with 20 additions and 0 deletions
|
@ -23,6 +23,7 @@ public:
|
|||
size_t amount_clean() const;
|
||||
|
||||
int release_all_clean_pages();
|
||||
int try_release_clean_pages(int page_amount);
|
||||
|
||||
u32 writable_mappings() const;
|
||||
u32 executable_mappings() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue