STRUCT HWMON_CHANNEL_INFO(9)
β¨ 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 aNULL-terminated list of channel parameters. you use this for per-channel attributes β¨ (and yes, theNULLtermination 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:configis a pointer to thatNULL-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
- 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