STRUCT EMC1812_DATA(9)
π 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 ofconst char *sizedEMC1812_MAX_NUM_CHANNELSactive_ch_maskβ which channels are active, as anunsigned longbitmask πchipβ a pointer to the structure that holds the chip features, aconst 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
- 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