sht15_humidity_show(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’§ sht15_humidity_show(9) β€” the kernel API manual, bestie edition

okay so this is a page from the Kernel API Manual, and it's all about sht15_humidity_show β€” the little function that shows your humidity measurement value in sysfs. yes, sysfs. we love her. 🌸


✨ NAME ✨

sht15_humidity_show β€” show humidity measurement value in sysfs πŸ’–


✨ SYNOPSIS ✨

ssize_t sht15_humidity_show (struct device *dev , struct
       device_attribute *attr , char *buf );

like, that's the whole signature, no cap. three args, one ssize_t return, she's iconic. πŸ‘‘


✨ ARGUMENTS ✨

  • dev β€” device. literally the device, that's it, that's the whole vibe.
  • attr β€” device attribute. the attribute of said device. πŸŽ€
  • buf β€” sysfs buffer where measurement values are written to. this is where the humidity number actually lands, so, main character energy fr fr.

✨ DESCRIPTION ✨

so here's the tea: this one gets called on read access to the humidity1_input sysfs attribute. 🫢 someone reads it, you show up. that simple.

and what does it give back? it returns the number of bytes written into the buffer β€” and if something goes wrong, it hands you a negative errno instead. so like, if the number's negative, that's not a vibe check you passed 😭 that's an error, bestie.


✨ SEE ALSO ✨

the kernel file ./drivers/hwmon/sht15.c plus this entire extended friend group, ngl it's a whole squad:

go read all of them, i'll wait πŸ’…


cute little sign-off: this page lives under ./drivers/hwmon, dated October 2026. stay humid, stay hydrated πŸ“βœ¨
πŸ“¦ where this page comes from