get_level(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_level(9) β€” the kernel API manual, but make it cute

okay bestie so this is a page from the Kernel API Manual and it's literally about finding the level for a particular frequency. no cap, that's the whole vibe. it's giving "small function, big responsibility" energy and honestly? we love that for it. πŸŽ€


✨ NAME ✨

get_level β€” find the level for a particular frequency 🌸

like, the whole point of this icon is that it maps a frequency to a level. periodt. πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned long get_level (struct cpufreq_cooling_device *cpufreq_cdev ,
unsigned int freq );

that's it. that's the whole signature. copy it exactly, don't @ me. πŸ’…


πŸ’– ARGUMENTS πŸ’–

  • cpufreq_cdev β€” the cpufreq_cdev for which the property is required. like, this is the device we're asking about, bestie. it has to be that one. πŸ‘‘
  • freq β€” the frequency. yep. the actual frequency. the thing we're getting the level for. no notes. 🫢

⭐ RETURN ⭐

the level corresponding to the frequency. that's the answer, that's the tea, that's the whole point. πŸ’…βœ¨


🌈 SEE ALSO 🌈

kernel file ./drivers/thermal/cpufreq_cooling.c, plus literally the whole friend group:

iykyk β€” if you know, you know. go read them all. πŸ“šπŸ’œ


quick vibe check: the source line points at ./drivers/thermal, and honestly that's where the magic happens. 🧚

and that's the page!! mwah πŸ’‹ this cutie lives in the kernel's ./drivers/thermal directory, it's dated October 2026, and it belongs to the Kernel API Manual β€” get_level(9) forever, slay. πŸŒŸπŸ«ΆπŸŽ€

πŸ“¦ where this page comes from