cpuidle_coupled_set_waiting(9)
π cpuidle_coupled_set_waiting(9)
okay so bestie, welcome to the Kernel API Manual β¨ β yes, that's the manual section, and yes, this page is about one very specific little function that lives in the cpuidle coupled-state universe π. Pull up a chair, grab a strawberry π, and let's get into it.
πΈ NAME πΈ
cpuidle_coupled_set_waiting β mark this cpu as in the wait loop π
Like, it literally just flags "hey, this cpu is waiting now" and that's the whole vibe check π .
π¦ SYNOPSIS π¦
int cpuidle_coupled_set_waiting (int cpu , struct cpuidle_coupled
*coupled , int next_state );
Copy it exactly, bestie β no cap, it's giving function signature realness π.
β¨ ARGUMENTS β¨
cpuβ the target cpu π― (this is the one you're marking, iykyk)coupledβ thestruct coupledthat contains the current cpu πnext_stateβ the index indrv->statesof the requested state for this cpu π₯
π DESCRIPTION π
So here's the tea β: it updates the requested idle state for the specified cpuidle device. That's it, that's the whole thing π«.
And then β plot twist β it returns the number of waiting cpus π’. Literally returns a count, no cap π.
π SEE ALSO π
Kernel file ./drivers/cpuidle/coupled.c β and like, the whole coupled cpuidle cinematic universe π:
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_not_waiting(9)cpuidle_coupled_set_done(9)cpuidle_coupled_clear_pokes(9)cpuidle_enter_state_coupled(9)cpuidle_coupled_register_device(9)cpuidle_coupled_unregister_device(9)cpuidle_coupled_prevent_idle(9)cpuidle_coupled_allow_idle(9)
okay that's the whole page, bestie β you ate that π«Ά. this one came out of ./drivers/cpuidle and it's dated October 2026 β, and we're signing off with the biggest cpuidle_coupled_set_waiting(9) energy ever ππ
π§
π¦ 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