summaryrefslogtreecommitdiff
path: root/include/mach/gnumach.defs
diff options
context:
space:
mode:
Diffstat (limited to 'include/mach/gnumach.defs')
-rw-r--r--include/mach/gnumach.defs15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/mach/gnumach.defs b/include/mach/gnumach.defs
index 5235df63..b484accc 100644
--- a/include/mach/gnumach.defs
+++ b/include/mach/gnumach.defs
@@ -35,6 +35,8 @@ GNUMACH_IMPORTS
type vm_cache_statistics_data_t = struct[11] of integer_t;
+type vm_wire_t = int;
+
/*
* Return page cache statistics for the host on which the target task
* resides.
@@ -136,3 +138,16 @@ simpleroutine gsync_requeue(
wake_one : boolean_t;
flags : int);
+/*
+ * If the VM_WIRE_CURRENT flag is passed, specify that the entire
+ * virtual address space of the target task must not cause page faults.
+ *
+ * If the VM_WIRE_FUTURE flag is passed, automatically wire new
+ * mappings in the address space of the target task.
+ *
+ * If the flags are empty (VM_WIRE_NONE), unwire all mappings.
+ */
+routine vm_wire_all(
+ host : mach_port_t;
+ task : vm_task_t;
+ flags : vm_wire_t);