STRUCT HWMON_PMU_EVENT_VALUE(9)
β¨ NAME β¨
okay so welcome to the Kernel API Manual, section 9 bestie, and today's main character is struct hwmon_pmu_event_value β literally just Value in hwmon_pmu->events. no cap, that's the whole vibe π
π¦ SYNOPSIS π¦
here's the struct in all its iconic glory, copy it exactly or it's not giving:
struct hwmon_pmu_event_value {
unsigned long items[BITS_TO_LONGS( HWMON_ITEM__MAX)];
unsigned long alarm_items[BITS_TO_LONGS( HWMON_ITEM__MAX)];
char *label;
char *name;
};
π MEMBERS π
itemsβ tells you which item files are present. that's it, that's the job π«Άalarm_itemsβ also tells you which item files are present. yes literally the same description asitems, don't come for me, I'm just the messenger πlabelβ holds the contents of<type><number>_labelif present. key words: if present πnameβ the name computed from label of the form<type>_<label>. so it's derived, it's giving glow-up fromlabelβ¨
πΈ DESCRIPTION πΈ
so here's the lore: hwmon files are of the form <type><number>_<item> and may have a suffix _alarm. that's the whole pattern, periodt π
π SEE ALSO π
- Kernel file
./tools/perf/util/hwmon_pmu.cβ go read it, iykyk π
fr fr that's everything, nothing skipped, nothing invented, we ate and left no crumbs π
and that's the wrap bestie!! this lil masterpiece lives in ./tools/perf/util, dated October 2026, and it's officially struct hwmon..._event_value(9) β slay, bye ππ§ββοΈ
π¦ 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