1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

Kernel+SystemMonitor: Expose the number of set CoW bits in each Region

This number tells us how many more pages in a given region will trigger
a CoW fault if written to.
This commit is contained in:
Andreas Kling 2019-12-15 16:53:00 +01:00
parent 9ad151c665
commit 3fbc50a350
4 changed files with 14 additions and 0 deletions

View file

@ -105,6 +105,8 @@ public:
bool should_cow(size_t page_index) const;
void set_should_cow(size_t page_index, bool);
u32 cow_pages() const;
void set_writable(bool b)
{
if (b)