smu_get_ppt_limit(9)
π smu_get_ppt_limit(9) β Kernel API Manual, but make it make sense
okay so bestie, welcome to smu_get_ppt_limit β the little kernel function that goes and asks the SMU for one of its PPT limits. that's literally it. it's giving "polite request to the power management people" energy β¨
π NAME π
smu_get_ppt_limit β request one of the SMU PPT limits. no cap, that's the whole job π«Ά
β¨ SYNOPSIS β¨
int smu_get_ppt_limit (void *handle , uint32_t *limit , enum
pp_power_limit_level pp_limit_level , enum pp_power_type pp_power_type
);
like copy that exactly bestie, every type and comma, i'm not joking π
πΈ ARGUMENTS πΈ
handleβ pointer to smu context. yeah, the usual handle situation, it's the smu vibe holder πlimitβ the requested limit gets written back to this variable. output param behavior, classic, iconic πpp_limit_levelβ app_power_limit_level, which tells it which limit of the power to return. which one? you decide, main character πpp_power_typeβ app_power_type, the type of power. yes, power has types, we don't make the rules π¦
π RETURN π
0 on success, <0 on error. that's it. that's the contract. success slay, negative number = go cry about it π
π₯ SEE ALSO π₯
- kernel file
./drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.cβ go read the source if you want the real tea π smu_dpm_set_power_gate(9)smu_set_user_clk_dependencies(9)smu_restore_dpm_user_profile(9)smu_alloc_memory_pool(9)smu_wbrf_handle_exclusion_ranges(9)smu_wbrf_event_handler(9)smu_wbrf_delayed_work_handler(9)smu_wbrf_support_check(9)smu_wbrf_init(9)smu_wbrf_fini(9)smu_reset_sdma_is_supported(9)
that's eleven friends and a file path, all accounted for, no crumbs left π§
ngl this one's short and sweet β no deprecated flags, no scary caveats, no accidental footguns mentioned. just a handle, a limit, a level, a type, and a return code. we love a low-drama manpage π
and that's the tea bestie β straight out of ./drivers/gpu/drm/amd/pm/swsmu, dated October 2026, page smu_get_ppt_limit(9). mwah π see you in the group chat π«Άπβ¨
π¦ 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