ktime_get_raw_ts64(9)
π ktime_get_raw_ts64(9) β from the Kernel API Manual, bestie β¨
okay so picture this: you're deep in the kernel, the vibes are immaculate, and you just need time β but the raw, unfiltered kind. no ntp glow-up, no adjustments, just pure monotonic realness. that's this function. she's giving main character energy in the timekeeping department π°οΈπ
β¨ NAME β¨
ktime_get_raw_ts64 β returns the raw monotonic time in a timespec π
πΈ SYNOPSIS πΈ
void ktime_get_raw_ts64 (struct timespec64 *ts );
like, that's the whole signature. she's not complicated, she's just precise π
π¦ ARGUMENTS π¦
tsβ pointer to thetimespec64that gets set, periodt. you hand her the struct, she fills it in. no cap π«Ά
π₯ DESCRIPTION π₯
Returns the raw monotonic time β and we mean raw. this is completely un-modified by ntp, bestie π ntp doesn't touch this one, doesn't adjust it, doesn't even look at it. it's the untouched, no-filter, bare-faced version of monotonic time and honestly? iconic πβ
π SEE ALSO π
and now the obligatory friend-group roundup π these are all hanging out in the kernel file ./kernel/time/timekeeping.c:
- struct
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_tai_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)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)
ngl, that's a lot of timekeeping besties, but every single one of them is listed up there for a reason β go read them, iykyk π§π
k that's the whole page, mwah π this one lives over in ./kernel/time and the date on it is October 2026 β go off, timekeeping stans, you ate ππ«
π¦ 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