cpuidle_cou...ister_device(9)
π cpuidle_cou...ister_device(9) β a whole vibe
okay so bestie, welcome to the Kernel API Manual β¨ this one's a lil page about cpuidle_coupled_register_device, and honestly it's giving "quiet little helper function that does a LOT behind the scenes." let's get into it π«Ά
πΈ NAME πΈ
cpuidle_coupled_register_device β literally just registers a coupled cpuidle device. that's the whole job. iconic behavior, no notes π
β¨ SYNOPSIS β¨
int cpuidle_coupled_register_device (struct cpuidle_device *dev );
π ARGUMENTS π
devβ astruct cpuidle_devicefor the current cpu. like, the cpu you're on right now. that one. π₯οΈβ¨
π¦ DESCRIPTION π¦
so the way this works is π it gets called from cpuidle_register_device, right, and its whole moment is handling coupled idle init. π
what it actually does: it finds the cpuidle_coupled struct for this particular set of coupled cpus β or, if none exists yet, it just πͺ creates one. no cap. if there's no struct, there's a struct now. she provides. π
π₯ SEE ALSO π₯
the whole friend group, fr fr β go read these too:
- Kernel file
./drivers/cpuidle/coupled.c Coupled cpuidle states(9)struct cpuidle_coupled(9)cpuidle_coupled_parallel_barrier(9)cpuidle_state_is_coupled(9)cpuidle_coupled_state_verify(9)cpuidle_coupled_set_ready(9)cpuidle_coupled_set_not_ready(9)cpuidle_coupled_no_cpus_ready(9)cpuidle_coupled_cpus_ready(9)cpuidle_coupled_cpus_waiting(9)cpuidle_coupled_no_cpus_waiting(9)cpuidle_coupled_get_state(9)cpuidle_coupled_poke(9)cpuidle_coupled_poke_others(9)cpuidle_coupled_set_waiting(9)cpuidle_coupled_set_not_waiting(9)cpuidle_coupled_set_done(9)cpuidle_coupled_clear_pokes(9)cpuidle_enter_state_coupled(9)cpuidle_coupled_unregister_device(9)cpuidle_coupled_prevent_idle(9)cpuidle_coupled_allow_idle(9)
ngl bestie, this page is short but she's load-bearing. coupled cpuidle does not work without her. treat her with respect π
k that's the tea β this one lives in ./drivers/cpuidle, it's from October 2026, and it's part of the Kernel API Manual β mwah, go read the coupled.c file, ily, bye ππ§π
π¦ 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