amdgpu_dpm_get_temp_metrics(9)
π amdgpu_dpm_get_temp_metrics β Kernel API Manual β¨
okay so bestie, welcome to the amdgpu_dpm_get_temp_metrics(9) page π this is the kernel API manual for it, and we're gonna get you fully caught up, no cap.
πΈ NAME πΈ
amdgpu_dpm_get_temp_metrics β Retrieve metrics for a specific compute partition π«Ά
β SYNOPSIS β
ssize_t amdgpu_dpm_get_temp_metrics (struct amdgpu_device *adev , enum
smu_temp_metric_type type , void *table );
like, that's the whole signature, verbatim, don't come for me π
π¦ ARGUMENTS π¦
adevβ Pointer to the device. literally just the device, she's the main character here πtypeβ Identifier for the temperature type metrics to be fetched. tells the function which temp-type metrics you're after π‘οΈtableβ Pointer to a buffer where the metrics will be stored. and here's the iconic part: if it'sNULL, the function returns the size of the metrics structure instead of filling anything in π
π DESCRIPTION π
So what she does is retrieve metrics for a specific temperature type β¨. And if the table parameter is NULL? She doesn't populate anything β she just returns the size of the metrics structure. it's giving "vibe check first, fill the buffer later" honestly π
π₯ RETURN π₯
Size of the metrics structure on success π«Ά β or a negative error code on failure π (yes, negative, that's the "something went wrong" energy, don't ignore it).
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/pm/amdgpu_dpm.cβ the source, go read her, iykyk π amdgpu_dpm_reset_sdma_is_supported(9)amdgpu_dpm_is_temp_metrics_supported(9)amdgpu_dpm_get_xcp_metrics(9)
honestly the whole friend group ate π
ngl bestie, this page came from the./drivers/gpu/drm/amd/pmsource, and it's dated October 2026 πΈ and yes that's also the manual name up in the corner βamdgpu_dpm_get_temp_metrics(9), periodt π mwah, go read the kernel code, ily π§
π¦ 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