vm: object: implement transferring pages between objects

This commit is contained in:
2026-03-14 22:36:21 +00:00
parent 5d04dbb15a
commit f04c524bb5
2 changed files with 54 additions and 0 deletions

View File

@@ -85,6 +85,13 @@ extern kern_status_t vm_object_copy(
off_t src_offset,
size_t count,
size_t *nr_copied);
extern kern_status_t vm_object_transfer(
struct vm_object *dst,
off_t dst_offset,
struct vm_object *src,
off_t src_offset,
size_t count,
size_t *nr_moved);
DEFINE_OBJECT_LOCK_FUNCTION(vm_object, vo_base)