STRUCT HWMON_PMU_EVENT_VALUE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 as items, don't come for me, I'm just the messenger 😭
  • label β€” holds the contents of <type><number>_label if 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 from label ✨

🌸 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