cpuidle_coo...et_cur_state(9)
π cpuidle_cooling_set_cur_state(9) β the whole vibe
okay so first things first, bestie: this page lives in the Kernel API Manual β¨ and the header up top literally spells it cpuidle_coo...et_cur_state(9) because somebody's terminal was Not Wide Enough π but like... we know her. she's cpuidle_cooling_set_cur_state. iconic name, no notes.
πΈ NAME πΈ
cpuidle_cooling_set_cur_state β literally just Set the current cooling state π§β¨ that's the whole job.
π¦ SYNOPSIS π¦
int cpuidle_cooling_set_cur_state (struct thermal_cooling_device *cdev ,
unsigned long state );
yes the spacing is like that, don't @ me, copy it exactly π
π ARGUMENTS π
cdevβ the thermal cooling device π«Ά like, the actual device we're messing with.stateβ the target state π― the state we're aiming for. the goal. the dream.
β¨ DESCRIPTION β¨
okay so here's what happens, fr fr. The function checks first whether we're initiating the mitigation π and that, in turn, wakes up all the idle injection tasks belonging to the idle cooling device π΄β‘οΈπ₯ so everybody's up and doing their little jobs.
And in any case β like, no matter what happens with that check β it updates the internal state for the cooling device π so the state is always fresh, always updated, always that girl.
π₯ RETURN π₯
ngl this one is genuinely stress-free: The function can not fail β it is always zero. 0οΈβ£π«Ά no error codes, no drama, no crying in the group chat. slay.
π SEE ALSO π
- Kernel file
./drivers/thermal/cpuidle_cooling.cπ (go read the source, iykyk) - struct
cpuidle_cooling_device(9) cpuidle_cooling_runtime(9)cpuidle_cooling_get_max_state(9)cpuidle_cooling_get_cur_state(9)__cpuidle_cooling_register(9)cpuidle_cooling_register(9)
and that's the page!! π this one came straight out of ./drivers/thermal and it's dated October 2026 β so like... future vibes only π go forth and set those states, bestie ππ
π¦ 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