smu_cmn_dis...th_exception(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… smu_cmn_dis...th_exception(9) πŸ’…

okay bestie, so this one's from the Kernel API Manual and it is literally the "everyone gets turned off except you" function. it's giving main character energy for exactly one dpm feature πŸŽ€


✨ NAME ✨

smu_cmn_disable_all_features_with_exception β€” turns off all the dpm features except the one you name in @mask. yeah. that's it. that's the whole vibe. πŸ’€


🌸 SYNOPSIS 🌸

int smu_cmn_disable_all_features_with_exception (struct smu_context *smu
, enum smu_feature_mask mask );

like, you hand it your smu and your mask and it goes feral turning everything else off. no cap. πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • smu β€” the smu_context pointer, aka the whole situation you're operating on. it's a pointer. it's context. it's smu. iykyk 🫢
  • mask β€” the dpm feature that should not be disabled. this is the one survivor, the final girl, the exception to the rule πŸ’…
    • also worth knowing: SMU_FEATURE_COUNT means no exception β€” literally every dpm feature gets disabled. not one spared. brutal but iconic 🩸

⭐ RETURN ⭐

0 on success, or a negative error code on failure. so if it's not 0, something went ✨wrong✨ and you should probably look at that. 😭


🧚 SEE ALSO 🧚


ngl bestie, if you're disabling all the features, double-check your mask first. SMU_FEATURE_COUNT is right there and it does not play. πŸ™ˆ

mwah πŸ’œ that's the whole page! this lil gem lives over in ./drivers/gpu/drm/amd/pm/swsmu and the manual's dated October 2026 β€” so yeah, mark your calendar, bestie. πŸ—“οΈπŸ’–

πŸ“¦ where this page comes from