cpuidle_enter_state(9)
β¨ cpuidle_enter_state β enter the state and update stats β¨
okay so bestie, this is a Kernel API Manual page (section 9, the kernel-API girlies π
) and it's about cpuidle_enter_state. That's it. That's the whole vibe. Let's get into it π«Ά
πΈ NAME πΈ
cpuidle_enter_state β the function that enters the state and updates the stats β¨
Like, it literally does both things. Enters. And updates. No cap.
π¦ SYNOPSIS π¦
noinstr int cpuidle_enter_state (struct cpuidle_device *dev , struct
cpuidle_driver *drv , int index );
so it takes three args, returns an int, and it's marked noinstr β that's the whole signature, noinstr included, don't come for me π
π ARGUMENTS π
devβ the cpuidle device for this cpu. Like, this cpu's device, specifically. Not somebody else's. Main character energy only πdrvβ the cpuidle driver for this cpu. Same deal: this cpu's driver, periodt.indexβ an index into the states table indrvof the state to enter π so like, it's theindex-th entry of the states table that lives insidedrv, and that's the state you're going into. iykyk.
π SEE ALSO π
first of all, the kernel file this lives in (per the page):
./drivers/cpuidle/cpuidle.c
and then the whole friend group, fr fr β every single one of these is referenced:
cpuidle_play_dead(9)cpuidle_use_deepest_state(9)cpuidle_find_deepest_state(9)cpuidle_enter_s2idle(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)
like, that's the entire cpuidle cinematic universe and honestly? obsessed ππ
ok that's genuinely everything this page says β no extra lore, no invented behavior, I'm not out here making things up π
that's the page, bestie π this one lives in the directory ./drivers/cpuidle, it's dated October 2026, and yes it's the cpuidle_enter_state(9) page from the Kernel API Manual β go forth and enter those states, 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