ENUM HWMON_ITEM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enum hwmon_item(9) ✨

okay so bestie, this one's a Kernel API Manual page, and it's literally just a big list of enum constants with zero ✨lore✨ attached β€” no cap, every single one says "-- undescribed --". So we're gonna keep it πŸ’― and not invent anything. Sit down, hydrate, let's go 🫢


🌸 NAME 🌸

enum hwmon_item β€” that's it, that's the name. The source didn't give us a tagline, so no fake tagline from me, periodt πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

enum hwmon_item {
    HWMON_ITEM_NONE ,
    HWMON_ITEM_ACCURACY ,
    HWMON_ITEM_ALARM ,
    HWMON_ITEM_AUTO_CHANNELS_TEMP ,
    HWMON_ITEM_AVERAGE ,
    HWMON_ITEM_AVERAGE_HIGHEST ,
    HWMON_ITEM_AVERAGE_INTERVAL ,
    HWMON_ITEM_AVERAGE_INTERVAL_MAX ,
    HWMON_ITEM_AVERAGE_INTERVAL_MIN ,
    HWMON_ITEM_AVERAGE_LOWEST ,
    HWMON_ITEM_AVERAGE_MAX ,
    HWMON_ITEM_AVERAGE_MIN ,
    HWMON_ITEM_BEEP ,
    HWMON_ITEM_CAP ,
    HWMON_ITEM_CAP_HYST ,
    HWMON_ITEM_CAP_MAX ,
    HWMON_ITEM_CAP_MIN ,
    HWMON_ITEM_CRIT ,
    HWMON_ITEM_CRIT_HYST ,
    HWMON_ITEM_DIV ,
    HWMON_ITEM_EMERGENCY ,
    HWMON_ITEM_EMERGENCY_HIST ,
    HWMON_ITEM_ENABLE ,
    HWMON_ITEM_FAULT ,
    HWMON_ITEM_FREQ ,
    HWMON_ITEM_HIGHEST ,
    HWMON_ITEM_INPUT ,
    HWMON_ITEM_LABEL ,
    HWMON_ITEM_LCRIT ,
    HWMON_ITEM_LCRIT_HYST ,
    HWMON_ITEM_LOWEST ,
    HWMON_ITEM_MAX ,
    HWMON_ITEM_MAX_HYST ,
    HWMON_ITEM_MIN ,
    HWMON_ITEM_MIN_HYST ,
    HWMON_ITEM_MOD ,
    HWMON_ITEM_OFFSET ,
    HWMON_ITEM_PULSES ,
    HWMON_ITEM_RATED_MAX ,
    HWMON_ITEM_RATED_MIN ,
    HWMON_ITEM_RESET_HISTORY ,
    HWMON_ITEM_TARGET ,
    HWMON_ITEM_TYPE ,
    HWMON_ITEM_VID ,
    HWMON_ITEM__MAX

};

πŸ¦‹ vibe check: 45 constants, one straggler blank line before the closing brace, and I copied every byte of it exactly. Slay.


πŸ‘‘ Constants πŸ‘‘

okay this is the part where I have to be honest with you: the doc generator gave us nothing on any of these. Every single one is -- undescribed --. So here's the full roster, in order, with the honest truth attached to each πŸ”₯

  • HWMON_ITEM_NONE β€” -- undescribed -- (yes, really, the empty one is also undescribed, iconic of it honestly)
  • HWMON_ITEM_ACCURACY β€” -- undescribed --
  • HWMON_ITEM_ALARM β€” -- undescribed --
  • HWMON_ITEM_AUTO_CHANNELS_TEMP β€” -- undescribed --
  • HWMON_ITEM_AVERAGE β€” -- undescribed --
  • HWMON_ITEM_AVERAGE_HIGHEST β€” -- undescribed --
  • HWMON_ITEM_AVERAGE_INTERVAL β€” -- undescribed --
  • HWMON_ITEM_AVERAGE_INTERVAL_MAX β€” -- undescribed --
  • HWMON_ITEM_AVERAGE_INTERVAL_MIN β€” -- undescribed --
  • HWMON_ITEM_AVERAGE_LOWEST β€” -- undescribed --
  • HWMON_ITEM_AVERAGE_MAX β€” -- undescribed --
  • HWMON_ITEM_AVERAGE_MIN β€” -- undescribed --
  • HWMON_ITEM_BEEP β€” -- undescribed --
  • HWMON_ITEM_CAP β€” -- undescribed --
  • HWMON_ITEM_CAP_HYST β€” -- undescribed --
  • HWMON_ITEM_CAP_MAX β€” -- undescribed --
  • HWMON_ITEM_CAP_MIN β€” -- undescribed --
  • HWMON_ITEM_CRIT β€” -- undescribed --
  • HWMON_ITEM_CRIT_HYST β€” -- undescribed --
  • HWMON_ITEM_DIV β€” -- undescribed --
  • HWMON_ITEM_EMERGENCY β€” -- undescribed --
  • HWMON_ITEM_EMERGENCY_HIST β€” -- undescribed --
  • HWMON_ITEM_ENABLE β€” -- undescribed --
  • HWMON_ITEM_FAULT β€” -- undescribed --
  • HWMON_ITEM_FREQ β€” -- undescribed --
  • HWMON_ITEM_HIGHEST β€” -- undescribed --
  • HWMON_ITEM_INPUT β€” -- undescribed --
  • HWMON_ITEM_LABEL β€” -- undescribed --
  • HWMON_ITEM_LCRIT β€” -- undescribed --
  • HWMON_ITEM_LCRIT_HYST β€” -- undescribed --
  • HWMON_ITEM_LOWEST β€” -- undescribed --
  • HWMON_ITEM_MAX β€” -- undescribed --
  • HWMON_ITEM_MAX_HYST β€” -- undescribed --
  • HWMON_ITEM_MIN β€” -- undescribed --
  • HWMON_ITEM_MIN_HYST β€” -- undescribed --
  • HWMON_ITEM_MOD β€” -- undescribed --
  • HWMON_ITEM_OFFSET β€” -- undescribed --
  • HWMON_ITEM_PULSES β€” -- undescribed --
  • HWMON_ITEM_RATED_MAX β€” -- undescribed --
  • HWMON_ITEM_RATED_MIN β€” -- undescribed --
  • HWMON_ITEM_RESET_HISTORY β€” -- undescribed --
  • HWMON_ITEM_TARGET β€” -- undescribed --
  • HWMON_ITEM_TYPE β€” -- undescribed --
  • HWMON_ITEM_VID β€” -- undescribed --
  • HWMON_ITEM__MAX β€” -- undescribed -- (the sentinel bestie, still undescribed, still doing its job πŸ’€)
ngl, when the kernel docs say "-- undescribed --" forty-five times in a row, that's not me being lazy, that's me respecting the source πŸ™ˆ I'm not out here making up behaviour, that would be a crime.

🧚 Description 🧚

okay so THIS is where we actually get lore!! πŸŽ‰

Similar to enum hwmon_type β€” like, it's the sibling enum, same energy β€” but instead of describing the type part, it describes the item part of a sysfs filename. iykyk, sysfs filenames get chopped into pieces and this enum is the piece that names the item πŸ’…

and then the key detail: this enum is exposed for testing. that's it, that's the whole reason it's out here in public. not an API for your driver to go feral with, it's for the tests 🫢


🌈 SEE ALSO 🌈

like, go read the whole friend group, they're all in ./tools/perf/util and they all ate πŸ’–


and that's the page!! πŸ¦‹ source/version: ./tools/perf/util, dated October 2026 ⭐ thanks for coming to my ted talk, go parse some filenames, ily, bye πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from