set_hw_cap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 β€” TRUE means set it, FALSE means 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 😌:

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