__timekeeping_inject_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the timespec variable 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 πŸ’œ

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