tick_nohz_get_next_hrtimer(9)
π tick_nohz_get_next_hrtimer(9) β from the Kernel API Manual, bestie π
okay so real talk, this one lives in the Kernel API Manual and it's one of those little functions that's small but matters, yk? She's the "what's happening next" oracle. Let's get into it β¨
πΈ NAME πΈ
tick_nohz_get_next_hrtimer β returns the next expiration time for the hrtimer or the tick, whichever expires first ππ
heads up, bestie: if the tick has been stopped, it returns the next hrtimer. that's the whole vibe check right there.
π SYNOPSIS π
ktime_t tick_nohz_get_next_hrtimer (void );
π¦ ARGUMENTS π¦
voidβ no arguments. literally none. she takes nothing, gives you the tea π«Ά
π DESCRIPTION π
Called from power state control code with interrupts disabled. that's the setup, that's the context, no cap. she's doing her little job inside the power state control code, and interrupts are off the whole time β so act accordingly π
β RETURN β
the next expiration time. that's it, that's the answer, iconic π«
π SEE ALSO π
kernel file ./kernel/time/tick-sched.c, plus the whole friend group:
tick_nohz_update_jiffies(9)tick_nohz_next_event(9)tick_nohz_idle_stop_tick(9)tick_nohz_idle_enter(9)tick_nohz_irq_exit(9)tick_nohz_idle_got_tick(9)tick_nohz_get_sleep_length(9)tick_nohz_get_idle_calls_cpu(9)tick_nohz_idle_exit(9)tick_nohz_switch_to_nohz(9)tick_setup_sched_timer(9)
and that's the whole page, bestie π this came out of ./kernel/time and it's dated October 2026 β so like, future-core π bye luv u, go read tick_nohz_next_event(9) next mwah π§β¨
π¦ 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