STRUCT ADM1177_STATE(9)
π NAME
struct adm1177_state β the driver-instance-specific data, bestie. it's literally the little bundle of everything one adm1177 driver instance needs to know about itself π«Ά
β¨ SYNOPSIS
struct adm1177_state {
struct i2c_client *client;
u32 r_sense_uohm;
u64 alert_threshold_ua;
bool vrange_high;
};
okay so that's the whole struct, and yes the closing brace has a lil space before it in the original β we keep it exactly like that, no cap β¨
π Members
clientβ pointer to i2c client πΈ like, this is the actual i2c connection this instance is chatting on. main character energy fr.r_sense_uohmβ the current sense resistor value π that's the resistor doing the sensing, measured in micro-ohms (uohm, see what they did there π).alert_threshold_uaβ the current limit for shutdown π₯ cross this and things get dramatic. measured in micro-amps. it's giving boundaries.vrange_highβ internal voltage divider π¦ abool, just vibing as a true/false about that internal divider's range.
π§ SEE ALSO
- Kernel file
./drivers/hwmon/adm1177.cβ go read the source, iykyk π
and that's the whole page, bestie!! nothing skipped, nothing made up, every member accounted for π this lil writeup lives in the ./drivers/hwmon directory and it's dated October 2026, so mark your calendar and slay the day πβ¨
π¦ 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