amdgpu_dpm_get_temp_metrics(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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's NULL, 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 🌈

honestly the whole friend group ate πŸ’€


ngl bestie, this page came from the ./drivers/gpu/drm/amd/pm source, 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