STRUCT HIH6130(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct hih6130(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸŽ€ β€” this is the page for struct hih6130, and honestly? it's giving device specific data for the HIH-6130. that's it, that's the vibe. πŸ’…


🌸 NAME 🌸

struct hih6130 β€” HIH-6130 device specific data πŸ¦‹

like literally just the little bundle of state that belongs to one HIH-6130 sensor. no cap.


✨ SYNOPSIS ✨

bestie. here's the whole struct, character for character, don't @ me:

struct hih6130 {
    struct i2c_client *client;
    struct mutex lock;
    bool valid;
    unsigned long last_update;
    int temperature;
    int humidity;
    size_t write_length;
 };

πŸ‘‘ Members πŸ‘‘

okay so let's meet the cast, main character energy only:

  • client β€” pointer to the I2C client device πŸ”Œ like who this sensor actually is on the bus.
  • lock β€” a mutex to protect the measurement values πŸ”’ keep your hands off the cached numbers while someone's updating them, k?
  • valid β€” only false before the first measurement is taken 🌱 so it starts off not-valid and then it's valid forever after, periodt.
  • last_update β€” time of last update (in jiffies) ⏰ that's the kernel's cute little tick counter, iykyk.
  • temperature β€” cached temperature measurement value 🌑️ cached!! it's keeping the last reading around.
  • humidity β€” cached humidity measurement value πŸ’§ same deal, just wetter.
  • write_length β€” length for the I2C measurement request πŸ“ that's how many bytes get written when asking the sensor for a reading.

🫢 SEE ALSO 🫢

go read these next, fr fr:


πŸ’€ friendly reminder: this is a driver-internal struct, bestie β€” the fields are shared state and lock is there for a reason. don't be out here reading temperature or humidity without holding it.

anyway that's the whole page, mwah πŸ’– it lives over in ./drivers/hwmon and the version on this one is dated October 2026 β€” slay, go touch some sensor data 🌈⭐🧚

πŸ“¦ where this page comes from