get_perf_idx(9)
β¨ 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:
struct devfreq_cooling_device(9)devfreq_cooling_gen_tables(9)of_devfreq_cooling_register_power(9)of_devfreq_cooling_register(9)devfreq_cooling_register(9)devfreq_cooling_em_register(9)devfreq_cooling_unregister(9)
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
- 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