summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-28 02:04:34 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-28 08:40:25 +0100
commita8fbf3737be9a6f5fd1d87765072292d54e54aac (patch)
treee65ed8ce9cecc5d108b4dfbb86904405c4056b69 /include
parentaafaddc3ba9b14a319153aaff0a7f0d333ef3637 (diff)
Add host_set_time64 and host_adjust_time64
Same existing logic, just with 64 bits. Old RPCs are implemented by calling into the new RPCs. Message-Id: <Y9TJAmL2byOWup5x@jupiter.tail36e24.ts.net>
Diffstat (limited to 'include')
-rw-r--r--include/mach/mach_host.defs18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/mach/mach_host.defs b/include/mach/mach_host.defs
index 0674c859..223f4576 100644
--- a/include/mach/mach_host.defs
+++ b/include/mach/mach_host.defs
@@ -360,3 +360,21 @@ routine host_get_boot_info(
routine host_get_time64(
host : host_t;
out current_time : time_value64_t);
+
+/*
+ * Set the time on this host.
+ * Only available to privileged users.
+ */
+routine host_set_time64(
+ host : host_t;
+ new_time : time_value64_t);
+
+/*
+ * Arrange for the time on this host to be gradually changed
+ * by an adjustment value, and return the old value.
+ * Only available to privileged users.
+ */
+routine host_adjust_time64(
+ host_priv : host_priv_t;
+ in new_adjustment : time_value64_t;
+ out old_adjustment : time_value64_t);