tick_nohz_get_sleep_length(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ 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 πŸ’…

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