ktime_get_c...real_ts64_mg(9)
π
ktime_get_coarse_real_ts64_mg(9) β from the Kernel API Manual, bestie
okay so picture this: you're deep in kernel-time land, the clock is doing its little dance, and you just need to know what time it really is β or at least, what time the mg_floor says it is, whichever is later. that's this function. she's niche, she's filesystem-flavored, and she ate. β¨
πΈ SYNOPSIS
void ktime_get_coarse_real_ts64_mg (struct timespec64 *ts );
π ARGUMENTS
tsβ thetimespec64that gets filled. she's the output, she's the moment, she's getting written to. no cap. π
π¦ DESCRIPTION
okay so here's the vibe check. this function fetches the global mg_floor value, converts it to realtime, and compares it to the current coarse-grained time. then it fills ts with whichever one is latest β literally the "latter of" the two. floor or clock, whoever wins, wins. π
and now the important part, bestie, listen up: this is a filesystem-specific interface and you should avoid it outside of that context. it's giving "only for the group chat it was made for." don't be taking her to other parties. π«Ά
β οΈ fr fr β filesystem context only. if you're not in that lane, walk away. π
β SEE ALSO
she runs in ./kernel/time/timekeeping.c β the kernel file, iconic, we love her. and here's the whole squad, in order, nobody left behind: π
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)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_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)
and that's the whole thing, bestie β brought to you straight out of ./kernel/time, dated October 2026, filed under the Kernel API Manual. slay. π
ππ
π¦ 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