ENUM HWMON_ITEM(9)
β¨ 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 π
- Kernel file
./tools/perf/util/hwmon_pmu.h enum hwmon_type(9)union hwmon_pmu_event_key(9)parse_hwmon_filename(9)hwmon_pmu__new(9)
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
- 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