STRUCT HWMON_CHANNEL_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct hwmon_channel_info(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this page is all about struct hwmon_channel_info β€” literally the little glow-up card that tells the hwmon subsystem what a sensor channel is and how to describe its per-channel bits. it's giving "backstage pass energy" πŸŽ€


🌸 NAME 🌸

struct hwmon_channel_info β€” channel information, aka the moment your sensor channel finally gets an identity πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct hwmon_channel_info {
    enum hwmon_sensor_types type;
    const u32 *config;
 };

like, that's the whole struct, no cap β€” two members and it ate πŸ”₯


πŸ‘‘ Members πŸ‘‘

  • type β€” the channel type. which flavor of sensor are we talking about, iykyk 🌈
  • config β€” pointer to a NULL-terminated list of channel parameters. you use this for per-channel attributes ✨ (and yes, the NULL termination is the whole point β€” don't forget it, bestie πŸ™ˆ)

🫢 SEE ALSO 🫢

  • kernel file ./include/linux/hwmon.h β€” go read it, it's iconic πŸ“–
  • struct hwmon_ops(9)
  • struct hwmon_chip_info(9)
  • hwmon_is_bad_char(9)

πŸ’€ friendly reminder: config is a pointer to that NULL-terminated list β€” it's not the list itself, so don't be out here dereferencing and vibing on nothing 🧚

okay that's the whole page, you slayed it, go forth and describe your channels πŸ¦‹πŸ’–

source: ./include/linux, dated October 2026 β€” mwah, that's the tea, bye bestie πŸ’…πŸŽ€

πŸ“¦ where this page comes from