STRUCT XE_HWMON_THERMAL_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 a u8 array sized TEMP_LIMIT_MAX.
  • data β€” temperature limits in dwords. same limits, different fit: a u32 array of DIV_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. a u8, 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 the s.
  • 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 for MAX_LABEL_SIZE characters. slay 🌸
side note: the union means limit and data share 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