cpuidle_coo...et_cur_state(9)
π cpuidle_coo...et_cur_state(9) β like, the whole glow-up
okay so bestie, welcome to the Kernel API Manual π β yes that's the manual name, yes it's giving official, and yes we're still gonna have fun with it. This page is about cpuidle_cooling_get_cur_state, and it is honestly the least dramatic function you will ever meet. It just... gets the current cooling state. That's it. That's the whole vibe. π¦
β¨ NAME β¨
cpuidle_cooling_get_cur_state β Get the current cooling state π
Like, the name literally says it. No lore, no hidden meaning, no plot twist.
πΈ SYNOPSIS πΈ
int cpuidle_cooling_get_cur_state (struct thermal_cooling_device *cdev ,
unsigned long *state );
That's the whole signature, copy it exactly because we do not freestyle kernel function calls in this group chat π
π«Ά ARGUMENTS π«Ά
cdevβ the thermal cooling device. it's the one doing the cooling, the main character of the thermal world πstateβ a pointer to the state. yes, a pointer. yes, you need to hand it a real place in memory. no cap. β
π DESCRIPTION π
okay so here's the tea: the function just copies the state value from the private thermal cooling device structure. that's it. that's the entire job. π
The mapping is 1 <-> 1. One to one. No scaling, no math, no clever conversion β literally a straight copy, iykyk. it's not doing homework, it's not transforming anything, it's just handing you back what's already there. iconic low-effort queen behaviour, honestly. π
π₯ RETURN π₯
The function can not fail. ate and left no crumbs. it is always zero. every single time. no error codes, no surprises, no "oops something went wrong" text at 3am. literally zero π«Ά
not me actually appreciating a function that cannot fail for once π take notes, other syscalls
π SEE ALSO π
- Kernel file
./drivers/thermal/cpuidle_cooling.cβ structcpuidle_cooling_device(9) cpuidle_cooling_runtime(9)cpuidle_cooling_get_max_state(9)cpuidle_cooling_set_cur_state(9)__cpuidle_cooling_register(9)cpuidle_cooling_register(9)
go read those if you're nosy (you are, and honestly? same π)
and that's the page bestie!! π this lil gem lives over in ./drivers/thermal, and the version & date situation is October 2026 β so like, future vibes, very ahead of its time, and the manual name is still Kernel API Manual in case you forgot already π 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