UNION HWMON_PMU_EVENT_KEY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… union hwmon_pmu_event_key(9) πŸŽ€

okay so this is a page straight out of the Kernel API Manual, and bestie, it's about one tiny lil union that's doing main character energy in the hwmon world ✨


🌸 NAME 🌸

union hwmon_pmu_event_key β€” the key for hwmon_pmu->events, where every key represents an event, periodt πŸ’–

And like, the union is exposed for testing so we can make sure no problems happen on big endian machines πŸ‘‘ (ngl, very responsible of it).


✨ SYNOPSIS ✨

union hwmon_pmu_event_key {
    long type_and_num;
    struct {
      int num :16;
      enum hwmon_type type :8;
    };
 };

πŸ¦‹ Members πŸ¦‹

  • {unnamed_struct} β€” anonymous, no name, just vibes πŸ™ˆ

πŸŽ€ Description πŸŽ€

The related hwmon files start with <type><number> β€” and that is literally what this key represents πŸ’… (iykyk)


🫢 SEE ALSO 🫢


k bye bestie, this page came from ./tools/perf/util and it's dated October 2026 β€” iconic of it, honestly πŸŒˆπŸ’œ

πŸ“¦ where this page comes from