STRUCT EMC1812_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ NAME πŸ’œ

struct emc1812_data β€” bestie, it's literally just the info about chip parameters ✨

okay so before we dive in: this page is from the Kernel API Manual, section 9, and it's all about one little struct named struct emc1812_data. she's not complicated, she's just thorough πŸŽ€


🌸 SYNOPSIS 🌸

struct emc1812_data {
    const char *labels[EMC1812_MAX_NUM_CHANNELS];
    unsigned long active_ch_mask;
    const struct emc1812_features *chip;
    struct regmap *regmap;
    bool recd34_en;
    bool recd12_en;
    bool apdd_en;
 };

look at her πŸ₯Ή seven members, zero drama, all vibes.


πŸ¦‹ Members πŸ¦‹

  • labels β€” the labels of the channels, iykyk πŸ’… literally an array of const char * sized EMC1812_MAX_NUM_CHANNELS
  • active_ch_mask β€” which channels are active, as an unsigned long bitmask πŸ‘‘
  • chip β€” a pointer to the structure that holds the chip features, a const struct emc1812_features * 🧚
  • regmap β€” the device register map, struct regmap * ⭐
  • recd34_en β€” the state of Resistance Error Correction (REC) on channels 3 and 4 πŸ”₯ (yes, REC, spelled out, no cap)
  • recd12_en β€” the state of Resistance Error Correction (REC) on channels 1 and 2 🌈
  • apdd_en β€” the state of anti-parallel diode mode πŸ¦‹
ngl, the two REC booleans being split by channel pair is the kind of detail that eats, and you should keep them straight: 34 = channels 3 and 4, 12 = channels 1 and 2. don't mix them up bestie 😭

⭐ SEE ALSO ⭐

  • Kernel file ./drivers/hwmon/emc1812.c β€” the main character herself πŸ’–
  • struct emc1812_features(9) β€” her supporting cast 🫢

aaaand that's the whole page, no filler, no skips πŸ’…

sign-off time: this page lives in the ./drivers/hwmon directory, dated October 2026, and it's filed under struct emc1812_data(9). go forth and read the kernel source, bestie, you've got this πŸŽ€βœ¨

πŸ“¦ where this page comes from