vm: address-space: implement copy-on-write address-space duplication

This commit is contained in:
2026-04-01 18:36:25 +01:00
parent c8202c6741
commit a0cab068da
2 changed files with 238 additions and 0 deletions
+6
View File
@@ -105,6 +105,12 @@ extern kern_status_t address_space_release(
virt_addr_t base,
size_t length);
/* duplicate all of the mappings in `src` within `dest. the duplication will use
* copy-on-write; page data will not be copied until it is written to. */
extern kern_status_t address_space_duplicate(
struct address_space *dest,
struct address_space *src);
extern bool address_space_validate_access(
struct address_space *region,
virt_addr_t base,