tick_nohz_get_sleep_length(9)
π€ tick_nohz_get_sleep_length π€
okay bestie, welcome to the Kernel API Manual β¨ we're talking about tick_nohz_get_sleep_length, and it's literally all about how long your current sleep is expected to last. no cap.
πΈ NAME πΈ
tick_nohz_get_sleep_length β return the expected length of the current sleep ππ
π SYNOPSIS π
ktime_t tick_nohz_get_sleep_length (ktime_t *delta_next );
π¦ ARGUMENTS π¦
delta_nextβ the duration until the next event if the tick cannot be stopped β°. that's the whole vibe of this parameter.
π DESCRIPTION π
so this one is called from power state control code with interrupts disabled π«Ά. that's important, bestie β keep that in mind.
the return value of this function and/or the value returned by it through the delta_next pointer can be negative, and callers absolutely must take that into account ππ. like, do not ignore the negative possibility. the kernel is not playing.
β RETURN β
the expected length of the current sleep π€π
π SEE ALSO π
- Kernel file
./kernel/time/tick-sched.c 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_next_hrtimer(9)tick_nohz_get_idle_calls_cpu(9)tick_nohz_idle_exit(9)tick_nohz_switch_to_nohz(9)tick_setup_sched_timer(9)
bestie reminder: those negative values are real, and callers need to handle them. no skipping that part πβ¨
mwah π this lil page comes from ./kernel/time, dated October 2026, and it's all about tick_nohz_get_sleep_length(9) β bye bestie! π«Άπ
π¦ 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