ktime_get_tai_fast_ns(9)
π NAME π
okay so bestie, welcome to ktime_get_tai_fast_ns β this page lives in the Kernel API Manual (section 9), and it's giving βNMI safe and fast access to tai clockβ β¨ like that's literally the whole name-and-purpose combo.
It's ktime_get_tai_fast_ns β NMI safe and fast access to tai clock. periodt π
β¨ SYNOPSIS β¨
u64 notrace ktime_get_tai_fast_ns (void );
π ARGUMENTS π
voidβ no arguments. literally none, bestie, it said what it said π«Ά
π¦ DESCRIPTION π¦
so here's the tea: the same limitations as described for ktime_get_boot_fast_ns apply here too. you know how it is π
the mono time and the TAI offset are not read atomically, which may yield wrong readouts π not me finding out the vibes are slightly out of sync.
β οΈ caveat bestie: the mono time and the TAI offset are not read atomically, so the readouts may be wrong. do not pretend this is atomic β it is not. π
however β and this is the slay part β an update of the TAI offset is a rare event, e.g., caused by settime or adjtimex with an offset. so it's not happening every five seconds, thank goodness πΈ
the user of this function has to deal with the possibility of wrong timestamps in post processing. no cap, that's on you to handle in post processing π«‘
πΈ SEE ALSO πΈ
like, go read these too, iykyk π
- Kernel file
./kernel/time/timekeeping.cβ andstruct tk_fast(9)π tk_setup_internals(9)update_fast_timekeeper(9)ktime_get_mono_fast_ns(9)ktime_get_raw_fast_ns(9)ktime_get_boot_fast_ns(9)ktime_get_real_fast_ns(9)halt_fast_timekeeper(9)pvclock_gtod_register_notifier(9)pvclock_gtod_unregister_notifier(9)timekeeping_forward_now(9)ktime_get_real_ts64(9)ktime_mono_to_any(9)ktime_get_raw(9)ktime_get_ts64(9)ktime_get_seconds(9)ktime_get_real_seconds(9)__ktime_get_real_seconds(9)ktime_get_snapshot_id(9)adjust_historical_crosststamp(9)ktime_real_to_base_clock(9)get_device_system_crosststamp(9)timekeeping_clocksource_has_base(9)do_settimeofday64(9)__timekeeping_inject_offset(9)timekeeping_notify(9)ktime_get_raw_ts64(9)timekeeping_valid_for_hres(9)timekeeping_max_deferment(9)read_persistent_clock64(9)read_persistent_wall_and_boot_offset(9)__timekeeping_inject_sleeptime(9)timekeeping_inject_sleeptime64(9)timekeeping_resume(9)update_wall_time(9)getboottime64(9)ktime_get_coarse_real_ts64_mg(9)ktime_get_real_ts64_mg(9)ktime_get_update_offsets_now(9)random_get_entropy_fallback(9)do_adjtimex(9)hardpps(9)ktime_get_aux(9)ktime_get_aux_ts64(9)
okay that's the page, bestie π«Ά source/version: ./kernel/time β’ date: October 2026 β’ page: ktime_get_tai_fast_ns(9) ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms