STRUCT XE_HWMON_FAN_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ struct xe_hwmon_fan_info(9) πŸ‘‘

okay so bestie, welcome to the Kernel API Manual ✨ and today's main character is struct xe_hwmon_fan_info(9) β€” the tiniest little glow-up struct whose whole entire job is remembering what your fan said last time. no cap, that's it, that's the vibe 🫢


πŸ’– NAME πŸ’–

struct xe_hwmon_fan_info β€” literally just here to cache previous fan reading πŸŒ€ like it's holding your fan's last text message so it can compare notes later, iconic behavior fr fr


✨ SYNOPSIS ✨

struct xe_hwmon_fan_info {
    u32 reg_val_prev;
    u64 time_prev;
 };

that's the whole struct, she's small but she's doing her best πŸ’… two members, zero drama:

🌸 Members 🌸

  • reg_val_prev β€” the previous fan reg val πŸ“ aka the fan register value from last time, saved for the plot
  • time_prev β€” the previous timestamp ⏰ so we know when that last reading happened, iykyk

πŸ¦‹ SEE ALSO πŸ¦‹

the girls that get referenced together, slay together πŸ’œ all of these live in the kernel file ./drivers/gpu/drm/xe/xe_hwmon.c:

  • struct xe_hwmon_energy_info(9)
  • struct xe_hwmon_thermal_info(9)
  • struct xe_hwmon(9)

go read those too, they're the extended universe 🌈


lowkey a reminder that this is under ./drivers/gpu/drm/xe β€” that's the directory, don't lose her πŸŽ€

and that's the whole page bestie, no crumbs left πŸ’€ mwah 😘 β€” with love from the Kernel API Manual, filed under ./drivers/gpu/drm/xe, dated October 2026, page struct xe_hwmon_fan_info(9) πŸ§šβ€β™€οΈπŸ’–βœ¨

πŸ“¦ where this page comes from