sht15_humidity_show(9)
π§ 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:
struct sht15_temppair(9)struct sht15_data(9)sht15_crc8(9)sht15_connection_reset(9)sht15_send_bit(9)sht15_transmission_start(9)sht15_send_byte(9)sht15_wait_for_response(9)sht15_send_cmd(9)sht15_soft_reset(9)sht15_ack(9)sht15_end_transmission(9)sht15_read_byte(9)sht15_send_status(9)sht15_update_status(9)sht15_measurement(9)sht15_update_measurements(9)sht15_calc_temp(9)sht15_calc_humid(9)sht15_status_show(9)sht15_status_store(9)sht15_temp_show(9)sht15_invalidate_voltage(9)
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
- 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