__hrtimer_get_remaining(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __hrtimer_get_remaining (9) β€” Kernel API Manual πŸ’–

okay so bestie, this is a deep-dive into __hrtimer_get_remaining β€” it lives in the Kernel API Manual, section 9, and honestly? it's giving "small function, big feelings" πŸŽ€


✨ NAME ✨

__hrtimer_get_remaining β€” get remaining time for the timer ⏳

Like, literally. It tells you how much time is left on a timer. That's the whole vibe. No cap. 🫢


✨ SYNOPSIS ✨

ktime_t __hrtimer_get_remaining (const struct hrtimer *timer , bool
adjust );

that's it, that's the whole signature πŸ’… writes out as a ktime_t, takes a const struct hrtimer *timer and a bool adjust β€” iconic, concise, no notes πŸ”₯


✨ ARGUMENTS ✨

  • timer β€” the timer to read 🌸 like, hand me the timer and I'll tell you what's in it, bestie
  • adjust β€” adjust relative timers when CONFIG_TIME_LOW_RES=y βš™οΈ lowkey important: this only does its little adjustment thing when that config is set, so don't come for her if nothing moves on your build 🧚

✨ SEE ALSO ✨

first up, the kernel file: ./kernel/time/hrtimer.c β€” that's the main character's home address πŸ πŸ‘‘

and the whole friend group:

iykyk, it's a whole hrtimer cinematic universe 🌈⭐ go read them, they ate πŸ’€πŸ’–


bestie reminder: the adjust argument is doing real work tied to CONFIG_TIME_LOW_RES=y β€” don't sleep on it πŸ™ˆ

and that's the tea πŸ“ this page is brought to you by ./kernel/time, dated October 2026 β€” mwah, go touch a timer, ily, bye πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from