__timekeeping_inject_offset(9)
π NAME π
__timekeeping_inject_offset β bestie, this one adds or subtracts from the current time. That's it, that's the whole vibe. β¨
(FYI this page lives in the Kernel API Manual neighborhood, so you already know it's deep kernel lore π)
π SYNOPSIS π
int __timekeeping_inject_offset (struct tk_data *tkd , const struct
timespec64 *ts );
Two args, one int coming back at you. Iconic signature, no notes. π
π«Ά ARGUMENTS π«Ά
tkdβ a pointer to the timekeeper you wanna mess with. Literally the thing that's getting modified, so pick your target carefully bestie π―tsβ a pointer to thetimespecvariable that's holding your offset. This is the amount, the delta, the whole reason you're here β¨
πΈ DESCRIPTION πΈ
Okay so the entire personality of this function is: it adds or subtracts an offset value from the current time. That's the tea β. Positive offset? Time goes forward. Negative? Back we go. The little timespec you handed over is the amount, and tkd points at the timekeeper taking the hit.
No cap, that's genuinely the whole description β it's a small function with main character energy, not a 40-option monster π¦
π₯ SEE ALSO π₯
Bestie the cross-reference list here is long, like, unreasonably long, and we love her for it. Everything below is (9) sections β go read them if you wanna go deeper, iykyk π
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_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)
And if you wanna see the actual source, it's kickin' it in the kernel file ./kernel/time/timekeeping.c β go say hi π§
β¨ and that's the whole page, bestie β¨
This lil' rewrite was brought to you by the Kernel API Manual, source directory ./kernel/time, dated October 2026 β mwah, take care of her, she's iconic πππ¦
π¦ 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