vm: controller: add an auto-detach flag for vm-objects

This commit is contained in:
2026-03-24 20:24:12 +00:00
parent 4daffa804c
commit a0a6a061a4
3 changed files with 36 additions and 8 deletions

View File

@@ -198,7 +198,8 @@ kern_status_t vm_controller_create_object(
object_ref(&ctrl->vc_base);
vmo->vo_flags |= VMO_CONTROLLER;
/* TODO expose the VMO_AUTO_DETACH flag to userspace */
vmo->vo_flags |= VMO_CONTROLLER | VMO_AUTO_DETACH;
vmo->vo_ctrl = ctrl;
vmo->vo_key = key;