cpuidle_find_deepest_state(9)
π 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:
cpuidle_play_dead(9)cpuidle_use_deepest_state(9)cpuidle_enter_s2idle(9)cpuidle_enter_state(9)cpuidle_select(9)cpuidle_enter(9)cpuidle_reflect(9)cpuidle_poll_time(9)cpuidle_install_idle_handler(9)cpuidle_uninstall_idle_handler(9)cpuidle_pause_and_lock(9)cpuidle_resume_and_unlock(9)cpuidle_enable_device(9)cpuidle_disable_device(9)__cpuidle_register_device(9)cpuidle_register_device(9)cpuidle_unregister_device(9)cpuidle_unregister(9)cpuidle_register(9)cpuidle_init(9)
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
- 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