amdgpu_dpm_i...cs_supported(9)
π amdgpu_dpm_is_temp_metrics_supported β the kernel API tea ββ¨
Okay so bestie, we're diving into the amdgpu_dpm_i...cs_supported(9) page from the Kernel API Manual β yes the title is literally abbreviated with dots in the middle, that's just how it's filed, don't come for her π«Ά. Buckle up, it's a little one but she's important.
πΈ NAME πΈ
amdgpu_dpm_is_temp_metrics_supported β returns whether a specific temperature metrics type is supported, no cap π―
β¨ SYNOPSIS β¨
bool amdgpu_dpm_is_temp_metrics_supported (struct amdgpu_device *adev ,
enum smu_temp_metric_type type );
That's the whole vibe check right there β a bool coming back at you, two args going in π₯
π ARGUMENTS π
adevβ pointer to the device, like, the device, the main character here π give her astruct amdgpu_device *and she knows exactly who you mean.typeβ the identifier for the temperature type metrics you wanna fetch. It's anenum smu_temp_metric_type, so pick your flavor of temp metric π‘οΈ
π¦ DESCRIPTION π¦
So what does she do? This function returns metrics if a specific temperature metrics type is supported β or, plot twist, tells you it's not π« . Basically it's the "are we doing this or not" friend before you commit to actually pulling the numbers.
β RETURN β
- True β the metrics type is supported, slay, you're so back π
- False β it's not supported, it's giving nothing, go home π
π SEE ALSO π
- Kernel file:
./drivers/gpu/drm/amd/pm/amdgpu_dpm.cβ the source, the mothership, go read her π amdgpu_dpm_reset_sdma_is_supported(9)amdgpu_dpm_get_temp_metrics(9)amdgpu_dpm_get_xcp_metrics(9)
All of these are her besties, run them in a pack fr fr π«Ά
Okay that's the whole page, not me getting emotionally attached to a boolean function π. This icon lives under ./drivers/gpu/drm/amd/pm and the version stamp on her is October 2026 β dated but never outdated π
β¨ periodt.
π¦ 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