em_pd_nr_perf_states(9)
π em_pd_nr_perf_states (9) β Kernel API Manual β¨
okay so bestie, welcome to section 9 of the kernel API manual, and today we're looking at em_pd_nr_perf_states β yes that's a whole mouthful, i know, but it's literally so much simpler than it sounds π«Ά
πΈ NAME πΈ
em_pd_nr_perf_states β get the number of performance states of a perf. domain π
like, that's it. that's the whole job. it counts the performance states for you so you don't have to. iconic behaviour honestly.
β¨ SYNOPSIS β¨
int em_pd_nr_perf_states (struct em_perf_domain *pd );
copy it exactly like that, spaces and all, no cap β the kernel does not play about formatting π
π ARGUMENTS π
pdβ the performance domain you want this done for π¦ that's the one you're asking about, the main character of this little function call tbh
β RETURN β
it hands you back the number of performance states in the performance domain table π₯ that's the count, that's the tea, that's the answer. no dramatic twist, she just tells you how many there are π
π SEE ALSO π
- Kernel file
./include/linux/energy_model.hβ literally the whole vibe lives in here, go read it π struct em_perf_state(9)struct em_perf_table(9)struct em_perf_domain(9)em_pd_get_efficient_state(9)em_cpu_energy(9)em_perf_state_from_pd(9)
all of these are your girls too, go say hi π (iykyk)
ngl this one's a short read because the function is short β the way that a good manpage doesn't need to overexplain itself π lowkey refreshing.
and that's the page bestie!! π it lives over in ./include/linux, dated October 2026 β so go forth, count those performance states, and slay β¨π§ββοΈπ·
π¦ 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