cpufreq_get_max_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 cpufreq_get_max_state πŸ’…

okay so bestie, welcome to the <pink>Kernel API Manual</pink> entry for cpufreq_get_max_state β€” yes it's a (9) page, that's the kernel-section girlies, we love them ✨


πŸŽ€ NAME πŸŽ€

cpufreq_get_max_state β€” the callback function that gets you the max cooling state, periodt.


✨ SYNOPSIS ✨

int cpufreq_get_max_state (struct thermal_cooling_device *cdev ,
unsigned long *state );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cdev β€” your thermal cooling device pointer. literally the whole device, she's the main character here πŸ‘‘
  • state β€” fill this variable with the max cooling state. that's the assignment, bestie, go write into it ✍️

πŸ’– DESCRIPTION πŸ’–

okay so, this is the callback for the thermal cooling device whose whole job is to return the cpufreq max cooling state. like, that's it, that's the vibe. the thermal cooling device calls her up and she hands back the max cooling state. no cap, that's the entire plot 🫢


πŸ”₯ RETURN πŸ”₯

0 on success β€” and like, that's the only outcome, because this function doesn't fail. she simply does not miss πŸ˜­πŸ’…


🌈 SEE ALSO 🌈


ngl bestie, that whole list is the friend group β€” go read them all, they're all iconic in their own way πŸ’œ

⭐ and that's a wrap! this little love letter lives in ./drivers/thermal, stamped <purple>October 2026</purple>, and it's part of the <mint>Kernel API Manual</mint> β€” mwah, go slay your cooling states πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from