sht15_temp_show(9)
π sht15_temp_show(9) β Kernel API Manual vibes π
okay so bestie, welcome to the sht15_temp_show(9) page, straight out of the Kernel API Manual β¨ this one's short and sweet and honestly kind of iconic for how much it does with so little π
πΈ NAME πΈ
sht15_temp_show β shows off the temperature measurement value in sysfs, no cap π₯
β¨ SYNOPSIS β¨
ssize_t sht15_temp_show (struct device *dev , struct device_attribute
*attr , char *buf );
like, that's the whole signature, that's the assignment π
π¦ ARGUMENTS π¦
devβ the device. that's it, that's the whole description, she's a device and we respect her π«Άattrβ the device attribute. also extremely brief. main character energy with zero elaboration β¨bufβ the sysfs buffer, and this is the one where the measurement values actually get written to π literally the whole point of the function lives here.
π DESCRIPTION π
so the kernel will call this lil function whenever someone does a read access on the temp1_input sysfs attribute π that's the vibe check that triggers the whole thing.
It returns the number of bytes written into the buffer, and if something goes sideways it returns a negative errno instead π so like β success gives you a byte count, failure gives you a sad little negative number. that's the contract, periodt.
π SEE ALSO π
if you're the kind of person who goes down the rabbit hole (and honestly? same π), here's the whole friend group:
Kernel file ./drivers/hwmon/sht15.c, plus:
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_humidity_show(9)sht15_invalidate_voltage(9)
okay that's the whole page bestie, ily, go read some sysfs πβ¨
signing off from ./drivers/hwmon, dated October 2026 β catch you in the next one ππ
π¦ 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