em_pd_nr_perf_states(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈

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