STRUCT XE_HWMON_ENERGY_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct xe_hwmon_energy_info(9) ✨

okay so bestie, welcome to the Kernel API Manual β€” yes we're reading a manpage together, this is our hangout now πŸ’– grab a boba, we're getting into it.


🌸 NAME 🌸

struct xe_hwmon_energy_info β€” it's literally here to accumulate energy, that's the whole job, no cap πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the glow-up, the actual shape of the thing, copy it exactly bestie:

struct xe_hwmon_energy_info {
    u32 reg_val_prev;
    long accum_energy;
 };

πŸŽ€ Members πŸŽ€

not me listing every single field because we do NOT skip parts in this house πŸ‘‘

  • reg_val_prev β€” a u32 holding the previous energy reg val. it's the "before" picture, the receipts from last time πŸ“Έ
  • accum_energy β€” a long holding the accumulated energy. yes it just keeps stacking it up, main character energy fr fr πŸ’…

⭐ SEE ALSO ⭐

go look at these too, they're iconic in their own right 🫢

  • Kernel file ./drivers/gpu/drm/xe/xe_hwmon.c
  • struct xe_hwmon_fan_info(9)
  • struct xe_hwmon_thermal_info(9)
  • struct xe_hwmon(9)

k that's the whole page, no notes, you ate that periodt 🌈

this lil gem lives in ./drivers/gpu/drm/xe, dated October 2026, and it's struct xe_hwmon_energy_info(9) if anyone asks β€” mwah, love u, go read the source πŸ’œπŸ§š

πŸ“¦ where this page comes from