get_powerpla...e_entry_v1_0(9)
π 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 π:
set_hw_cap(9)set_platform_caps(9)get_platform_power_management_table(9)init_dpm_2_parameters(9)init_clock_voltage_dependency(9)init_over_drive_limits(9)init_thermal_controller(9)get_tonga_state_array(9)
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
- 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