vm: address-space: implement copy-on-write address-space duplication
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user