get_perf_idx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ get_perf_idx(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this little icon is called get_perf_idx, and honestly? she does exactly what her name says: she hunts down the performance index that matches a given frequency. no cap, that's the whole gig πŸŽ€


🌸 NAME 🌸

get_perf_idx β€” get the performance index corresponding to a frequency

πŸ¦‹ SYNOPSIS πŸ¦‹

int get_perf_idx (struct em_perf_domain *em_pd , unsigned long freq );

πŸ’… ARGUMENTS πŸ’…

  • em_pd β€” Pointer to device's Energy Model ✨ like, this is the EM she's gonna go digging around in.
  • freq β€” frequency in kHz πŸ’– yes, kilohertz, keep that unit in mind bestie, do not come at her with MHz.

πŸ‘‘ RETURN πŸ‘‘

She returns the performance index associated with the freq πŸ”₯ β€” or -EINVAL if it wasn't found 😭 (that's the "girl, I looked everywhere and she's not here" answer).

🌈 SEE ALSO 🌈

Kernel file ./drivers/thermal/devfreq_cooling.c β€” plus these whole entire icons, go show them some love:


lowkey a tiny function but she's main character energy in the thermal/devfreq universe 🧚✨

okay that's the whole page, mwah πŸ’‹ this icon lives in ./drivers/thermal and the manual is dated October 2026 β€” that's it, that's the sign-off, go forth and index some perf πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from