#include <kern/remote_time.h>

kern/remote_time.h Kernel.framework

includes: sys/cdefs.h, Kernel/stdint.h, Kernel/os/overflow.h
2 functions · 1 macro · 1 struct

macroREMOTE_TIME_H

#define REMOTE_TIME_H 

structbt_params

bt_params is an ABI for tracing tools
size 24, align 8
doublerate
uint64_tbase_local_ts
uint64_tbase_remote_ts

functionmach_bridge_compute_timestamp

static inline uint64_t mach_bridge_compute_timestamp(
	uint64_t local_ts_ns,
	struct bt_params *params
)
local_ts_ns should be in nanoseconds

functionmach_bridge_remote_time

uint64_t mach_bridge_remote_time(uint64_t)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/kern/remote_time.c
Predicts the remote CPU's clock time (across the bridgeOS/macOS bridge) corresponding to the given local timestamp in mach_absolute_time units; a local_timestamp of 0 means the current mach_absolute_time. Returns 0 when timestamp exchange has not yet been initialized or the timestamp cannot be translated; on kernels built without the bridge receive side the input is echoed back (or, on the send side, only local_timestamp 0 is meaningful). On bridge hardware, monotonicity of the predicted time is guaranteed only for recent local timestamps up to 1 second before the current time.