__cpuidle_cooling_register(9)
β¨ __cpuidle_cooling_register β¨
okay bestie, welcome to the Kernel API Manual entry for __cpuidle_cooling_register(9) β yes that's a double underscore, yes it's on purpose, and yes she is that girl π
π NAME π
__cpuidle_cooling_register β register the cooling device π§β¨
πΈ SYNOPSIS πΈ
int __cpuidle_cooling_register (struct device_node *np , struct
cpuidle_driver *drv );
π¦ ARGUMENTS π¦
npβ a device node structure pointer, and she's the one used for the thermal binding π«Άdrvβ a cpuidle driver structure pointer, iconic, no notes π
π DESCRIPTION π
so like, this function is in charge of a whole little to-do list and she does not skip a single item:
- allocating the cpuidle cooling device structure
- the idle injection
- initializing them
- registering the cooling device to the thermal framework π₯
allocate, init, register, done. main character energy fr fr π
β RETURN β
- zero on success π (we love a zero)
- a negative value returned by one of the underlying subsystems in case of error π β not her fault bestie, blame the subsystem, she's just the messenger
π SEE ALSO π
Kernel file ./drivers/thermal/cpuidle_cooling.c, plus this whole friend group:
struct cpuidle_cooling_device(9)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)
and that's the page π«Ά she lives in ./drivers/thermal, she's dated October 2026, and she answers to __cpuidle_cooling_register(9) β go read her siblings, iykyk π¦π
π¦ 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