STRUCT XE_HWMON_THERMAL_INFO(9)
β¨ struct xe_hwmon_thermal_info(9) β¨
okay so this is the Kernel API Manual page for struct xe_hwmon_thermal_info, and bestie, it's literally just a lil' container for temperature data. that's the whole vibe. let's get into it π
π‘οΈ NAME π‘οΈ
struct xe_hwmon_thermal_info β to store temperature data
like yes, that's it. that's the function. it holds the temps. iconic behavior honestly π
π¦ SYNOPSIS π¦
struct xe_hwmon_thermal_info {
union {
u8 limit[TEMP_LIMIT_MAX];
u32 data[DIV_ROUND_UP(TEMP_LIMIT_MAX, sizeof(u32))];
};
u8 count;
s8 value[U8_MAX];
char vram_label[MAX_VRAM_CHANNELS][MAX_LABEL_SIZE];
};
look at that. so many fields. so much potential. not me being obsessed with a union π
π Members π
{unnamed_union}β anonymous. yes, it's one of those unions. no name, no problem, it just shows up and does its thing π«Άlimitβ temperatures limits (that's the plural as-is, keeping it fr fr). it's au8array sizedTEMP_LIMIT_MAX.dataβ temperature limits in dwords. same limits, different fit: au32array ofDIV_ROUND_UP(TEMP_LIMIT_MAX, sizeof(u32))β because sometimes you wanna look at the same data in bigger chunks, iykyk.countβ no of temperature sensors available for the platform. au8, so keep your expectations cute and small.valueβ signed value from each sensor.s8 value[U8_MAX];β note the signed bestie, temps can go negative, that's the whole point of thes.vram_labelβ vram label names. a 2D char array:char vram_label[MAX_VRAM_CHANNELS][MAX_LABEL_SIZE];β one label per VRAM channel, each with room forMAX_LABEL_SIZEcharacters. slay πΈ
side note: the union meanslimitanddatashare the same storage. same memory, two views. do with that what you will π«
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/xe/xe_hwmon.c struct xe_hwmon_energy_info(9)struct xe_hwmon_fan_info(9)struct xe_hwmon(9)
yes, go read the whole xe_hwmon family, they're all main characters in this arc π
and that's the page!! π this lil' doc lives under ./drivers/gpu/drm/xe and the version/date stamp on it is October 2026 β so yeah, it's giving future-core. go drink some water and read your structs, bestie ππ§
π¦ 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