get_powerpla...e_entry_v1_0(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_powerplay_table_entry_v1_0(9) β€” kernel API manual, but make it cute ✨

okay so bestie, grab a lil snack because we're diving into the Kernel API Manual and today's main character is get_powerplay_table_entry_v1_0 πŸ’– this one lives way down in ./drivers/gpu/drm/amd/pm/power... and she's serving hardware back-end realness, no cap.


πŸŽ€ NAME πŸŽ€

get_powerplay_table_entry_v1_0 β€” literally creates a Power State out of one single entry in the PowerPlay table πŸ¦‹ and like, the way that this function gets called by the hardware back-end? iconic. she's not out here doing solo work, she's a team player fr fr.


✨ SYNOPSIS ✨

int get_powerplay_table_entry_v1_0 (struct pp_hwmgr *hwmgr , uint32_t
entry_index , struct pp_power_state *power_state , int
(*call_back_func)(struct pp_hwmgr *, void *, struct pp_power_state *,
void *, uint32_t) );

like yes, that's the whole signature, she's long but she's worth it πŸ’…


🌸 ARGUMENTS 🌸

  • hwmgr β€” pointer to the hardware manager 🫢 your lil entry point to all the hardware-manager goodness.
  • entry_index β€” the index of the entry we're extracting from the table πŸ”₯ think of it as your spot in the group chat, but for a table.
  • power_state β€” the address of the PowerState instance being created ⭐ this is the baby being born, gently.
  • call_back_func β€” the function you call into to fill the power state πŸ’œ like, "hey bestie, go populate this for me," and the type is:
int (*call_back_func)(struct pp_hwmgr *, void *, struct pp_power_state *,
void *, uint32_t)

😭 RETURN 😭

-1 if the entry cannot be retrieved πŸ’€ that's it, that's the whole return contract. if it fails, you get -1 and you go hydrate and try again.


🧚 SEE ALSO 🧚

Kernel file

./drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c

and the whole friend group πŸ‘‘:


ngl, if the entry can't be retrieved you legit just get -1 β€” no extra lore, no dramatic monologue. that's the vibe check and it passed πŸ“

okay that's the whole page, bestie, you ate that 🌈 and for the credits moment: this one's filed under ./drivers/gpu/drm/amd/pm/power... with an October 2026 date, and the page header/footer both say get_powerpla...e_entry_v1_0(9) β€” yes the title's truncated, she's mysterious like that πŸ’€βœ¨ mwah, go read a manpage, ily 🫢

πŸ“¦ where this page comes from