cpufreq_for_...nt_entry_idx(9)
π cpufreq_for_...nt_entry_idx(9) β Kernel API Manual, but make it make sense
okay so bestie, this whole page is about one macro and honestly? it's giving "niche but iconic". it's in the Kernel API Manual, section 9, and the name is literally cpufreq_for_...nt_entry_idx β yes the name on the page is abbreviated, that's just how the header rolls, the real full name is in NAME below π
β¨ NAME β¨
cpufreq_for_each_efficient_entry_idx β it's a loop thingy that iterates with an index over a cpufreq frequency_table, and it excludes the CPUFREQ_ENTRY_INVALID frequencies AND the CPUFREQ_INEFFICIENT_FREQ frequencies. like it's a whole filtering moment fr fr π
πΈ SYNOPSIS πΈ
cpufreq_for_each_efficient_entry_idx (pos , table , idx , efficiencies
);
that's it, that's the whole vibe. four things go in, no cap π«Ά
π¦ ARGUMENTS π¦
posβ thestruct cpufreq_frequency_tableyou're using as your loop cursor. it's the little main character that walks the table for you β¨tableβ thestruct cpufreq_frequency_tableyou're actually iterating over. the whole menu, basically πidxβ the table entry that's currently being processed. your "you are here" marker πefficienciesβ set this totrueif you ONLY want to iterate over efficient frequencies. set it otherwise and you're not filtering on efficiency, iykyk π
π SEE ALSO π
- Kernel file
./include/linux/cpufreq.hβ that's where the source lives, go say hi π cpufreq_scale(9)cpufreq_table_set_inefficient(9)β the natural bestie of this page honestly π₯
lowkey reminder thatCPUFREQ_ENTRY_INVALIDandCPUFREQ_INEFFICIENT_FREQentries get skipped by this iterator β that's literally its whole personality π
okay that's the page!! mwah π this one's from the ./include/linux crew, dated October 2026, and the footer's out here still calling it cpufreq_for_...nt_entry_idx(9) like it forgot its own full name β anyway stan, bye bestie ππ¦
π¦ 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