cpuidle_find_deepest_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cpuidle_find_deepest_state β€” like, the Kernel API Manual's most unbothered little helper

okay so bestie, welcome to the cpuidle_find_deepest_state(9) page from the Kernel API Manual ✨ this one's short and sweet and honestly kind of iconic for it.


🌸 NAME 🌸

cpuidle_find_deepest_state β€” find the deepest available idle state. that's it. that's the whole vibe. 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int cpuidle_find_deepest_state (struct cpuidle_driver *drv , struct cpuidle_device *dev , u64 latency_limit_ns );

πŸŽ€ ARGUMENTS πŸŽ€

  • drv β€” the cpuidle driver for the given CPU. like, the main character of this particular core πŸ’…
  • dev β€” the cpuidle device for that same CPU. yes bestie, they're a matched set, slay ✨
  • latency_limit_ns β€” the idle state exit latency limit. this is the budget, the ceiling, the no further than this line πŸ”₯

πŸ‘‘ RETURN πŸ‘‘

it hands you back the index of the deepest available idle state. that's the whole bag. πŸ“


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/cpuidle/cpuidle.c β€” go say hi πŸ’– and here's the whole friend group, no cap, all of them:


bestie note: that __cpuidle_register_device(9) has two underscores up front, so, yeah, it's giving main character energy with a secret identity πŸ™ˆ don't typo it, iykyk.

πŸ’œ ok that's the whole page!! this one shipped from ./drivers/cpuidle back in October 2026, so yeah, mwah, periodt. go find the deepest state and slay πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from