cpuidle_unregister(9)
π cpuidle_unregister(9) β the Kernel API Manual, section 9, bestie β¨
okay so real talk, this is a page from the Kernel API Manual (section 9) and it's about the *un*registering side of CPU idle drivers. Yes, the emo sibling of cpuidle_register. Let's get into it π«Ά
πΈ NAME πΈ
cpuidle_unregister β unregister a driver and the devices.
Lowkey important caveat so listen up π: this function can be used only if the driver has been previously registered through the cpuidle_register function. No registration, no unregistration. It's giving "you can't break up if you never dated" π
β¨ SYNOPSIS β¨
void cpuidle_unregister (struct cpuidle_driver *drv );
void return, one pointer in, that's the whole vibe. Clean. Minimal. Iconic.
π ARGUMENTS π
drvβ a valid pointer to astruct cpuidle_driver. Like, valid valid, bestie. This is the driver you're sending off into the sunset π¦
π SEE ALSO π
Kernel file ./drivers/cpuidle/cpuidle.c β and omg the friend group is huge, genuinely main character energy from this whole subsystem:
cpuidle_play_dead(9)cpuidle_use_deepest_state(9)cpuidle_find_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_register(9)cpuidle_init(9)
ngl if you got here without calling cpuidle_register first, that's a vibe check you're gonna fail π so double-check before you unregister anything, k?
and that's the whole page, bestie, no notes π
this gem lives in ./drivers/cpuidle and it's dated October 2026 β save the date, screenshot it, put it in the group chat πβ¨π¦π
π¦ 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