STRUCT SMU_TEMP_FUNCS(9)
πΈ NAME πΈ
struct smu_temp_funcs β bestie, this is the callbacks used to get temperature data. That's it, that's the whole vibe: a lil struct of function pointers whose entire job is temperature gossip π
β¨ SYNOPSIS β¨
struct smu_temp_funcs {
ssize_t (*get_temp_metrics)(struct smu_context *smu, enum
smu_temp_metric_type type, void *table);
bool (*temp_metrics_is_supported)(struct smu_context *smu, enum
smu_temp_metric_type type);
};
okay and yes the wrapping in there is exactly like that, don't come for me, copy it character for character or the compiler will simply know π«Ά
π«Ά Members π«Ά
π
get_temp_metrics
she's the one the page actually spills tea about, so listen up:
- the job β calibrate the voltage/frequency curve so it fits the system's power delivery and voltage margins π₯
- required? β yeah, she's required for the adaptive type. not optional, not a nice-to-have, required π
typeβ this is the temperature metrics type (baseboard/gpuboard), so it knows which board's tea we're sipping π‘οΈsmuβ thestruct smu_context *it's riding ontableβ avoid *, and for the return: Size of table β
andtemp_metrics_is_supportedis right there in the struct too β abooltaking astruct smu_context *smuand anenum smu_temp_metric_type typeβ but this page doesn't hand out a description for her, so I'm not out here making one up. no cap, no invented lore π
π SEE ALSO π
go read these next, they're the friend group:
- Kernel file
./drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.hβ the home base π struct smu_msg_config(9)struct smu_msg_args(9)struct smu_msg_ops(9)struct smu_msg_ctl(9)struct pptable_funcs(9)smu_memcpy_trailing(9)
and that's the whole page, bestie!! π she lives at ./drivers/gpu/drm/amd/pm/swsmu... and this cutie is dated October 2026, filed under struct smu_temp_funcs(9) in the Kernel API Manual β slay, go read your temperature callbacks, 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