STRUCT CPUIDLE_COOLING_DEVICE(9)
β¨ NAME β¨
struct cpuidle_cooling_cooling_device β wait, no bestie, it's struct cpuidle_cooling_device π
β and it's literally just the data for the idle cooling device. That's the whole vibe. It holds stuff. It's a struct. Iconic behavior, honestly.
π SYNOPSIS π
struct cpuidle_cooling_device {
struct idle_inject_device *ii_dev;
unsigned long state;
};
Yes, that's the entire struct, no cap. Two members. It's giving minimalist queen. π¦
πΈ Members πΈ
ii_devβ an atomic that keeps track of the last task exiting the idle cycle π like it's literally the record keeper of who dipped out of the idle cycle last. Not me being obsessed with an atomic. π₯stateβ a normalized integer that gives the state of the cooling device β¨ normalized! integer! cooling device state! she's tidy, she's orderly, she knows her value (it's an integer, it's normalized, it's the state). π
π SEE ALSO π
- Kernel file:
./drivers/thermal/cpuidle_cooling.cπ (yes, that's where the real code lives, go read it, iykyk) cpuidle_cooling_runtime(9)cpuidle_cooling_get_max_state(9)cpuidle_cooling_get_cur_state(9)cpuidle_cooling_set_cur_state(9)__cpuidle_cooling_register(9)cpuidle_cooling_register(9)
ok bestie that's the whole page, no notes π two struct members, seven SEE ALSOs, and a file path. we ate. π«Ά
Later, from ./drivers/thermal π, dropping in October 2026 β mwah, slay, periodt. ππ
π¦ 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