set_hw_cap(9)
π set_hw_cap π
Kernel API Manual β section 9, bestie β¨
ok so we're in section 9 of the kernel API manual today, and the star of the show is set_hw_cap β say hi π
πΈ NAME πΈ
set_hw_cap β a Private Function used during initialization. that's it, that's the whole vibe. private. mysterious. only shows up when things are getting set up π«Ά
β¨ SYNOPSIS β¨
void set_hw_cap (struct pp_hwmgr *hwmgr , bool setIt , enum
phm_platform_caps cap );
like, look at her. returns nothing, takes three things, absolute main character energy π
π¦ ARGUMENTS π¦
hwmgrβ Pointer to the hardware manager. yeah, the whole hardware manager. she's holding the pointer, no pressure or anything πsetItβ A flag indication if the capability should be set (TRUE) or reset (FALSE). literally just on or off, bestie βTRUEmeans set it,FALSEmeans reset it, iykyk πcapβ Which capability to set/reset. the actual one you're flipping. pick your fighter π
π₯ SEE ALSO π₯
Kernel file, and yes it goes this deep:
./drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
and the whole friend group π:
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)get_powerplay_table_entry_v1_0(9)
no cap, that's the entire squad and they all ate π
ngl the whole function is marked private in the original β it's an init-time thing, so don't go treating it like a public glow-up π
ok bye bestie, this page came from ./drivers/gpu/drm/amd/pm/power... and it's dated October 2026 β set_hw_cap(9), signing off π§π
π¦ 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