We need a kernel-side reference-counting map for physical pages to support Copy-on-Write (COW) when creating…
We need a kernel-side reference-counting map for physical pages to support Copy-on-Write (COW) when creating…: a task in LegoFlow-SWE (Harbor dataset). Functions: - refcount map init() — initializes the map. Return true on success, false on failure. - refcount map increment(addr) — increment the…
The task
**Functions:** - `refcount_map_init()` — initializes the map. Return `true` on success, `false` on failure. - `refcount_map_increment(addr)` — increment the reference count for physical address `addr`. Return the new count. - `refcount_map_decrement(addr)` — decrement the reference count for physical address `addr`.…
Part of Lego-X/LegoFlow-SWE.