thermal_coo...evice_update(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

thermal_cooling_device_update β€” bestie, this is the little function that refreshes a cooling device object so it stops living in the past πŸ’…

(this one's straight out of the Kernel API Manual, no cap)


✨ SYNOPSIS ✨

void thermal_cooling_device_update (struct thermal_cooling_device *cdev
);

πŸŽ€ ARGUMENTS πŸŽ€

  • cdev β€” the target cooling device. like, the one you're updating. the main character of this whole operation 🫢

🌸 DESCRIPTION 🌸

okay so. thermal_cooling_device_update updates cdev so it actually reflects a change in the underlying hardware or platform. the vibe check happened, the hardware moved on, and now cdev needs to catch up ✨

you must call this when the maximum cooling state of cdev becomes invalid β€” because at that point its .get_max_state callback needs to be run to produce the new maximum cooling state value. no skipping this step, bestie, the callback literally has to run to get you the fresh value πŸ”₯

lowkey important: this isn't a "call it whenever, it's cute" situation. it's a "call it when the max cooling state goes invalid" situation. that's the whole point. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

kernel file ./drivers/thermal/thermal_core.c, plus all these iconic functions doing their thing:


and that's the whole page, bestie β€” go update that cooling device, it's giving responsible kernel citizen 🌈 πŸ’–

sign-off szn: this one lives over in ./drivers/thermal, dated October 2026, and yeah, the header/footer both spell it thermal_coo...evice_update(9) because even manpage titles gotta be a little mysterious 😭 πŸŽ€ πŸ‘‘

πŸ“¦ where this page comes from