STRUCT XE_HWMON_ENERGY_INFO(9)
β¨ 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β au32holding the previous energy reg val. it's the "before" picture, the receipts from last time πΈaccum_energyβ alongholding 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
- 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