sht15_status_store(9)
π sht15_status_store(9) β the kernel API manual, bestie edition π
okay so you found the sht15_status_store(9) page in the Kernel API Manual and you're like "what does this even do" β don't worry, I got you. This is the little sysfs callback that flips the heater on and off. Yes, the sensor has a heater. Yes, that's iconic. Let's get into it. β¨
πΈ NAME πΈ
sht15_status_store β literally the function that changes the heater state via sysfs. that's the whole vibe. π
π¦ SYNOPSIS π¦
ssize_t sht15_status_store (struct device *dev , struct device_attribute *attr , const char *buf , size_t count );
copy it exactly like that, bestie β don't be out here renaming things. π
π ARGUMENTS π
devβ the device. the main character of this whole situation, no cap. π«Άattrβ the device attribute. it's the sysfs thing being touched, and it knows it. πββοΈbufβ the sysfs buffer where we read the new heater state from. this is where the tea comes in. π΅countβ length of the data. how many bytes we're working with, fr fr. π
π DESCRIPTION π
okay so the way this works: this function gets called on write access to the heater_enable sysfs attribute. that's it, that's the whole entry point. something writes to heater_enable, and boom β sht15_status_store is on the scene. π₯
and what does it return? it returns the number of bytes actually decoded, and if something goes wrong it hands you back a negative errno. negative errno = bad vibes, handle it. π
ngl, "number of bytes actually decoded" is the key phrase here β that's the return contract, so don't go assuming it's always just count. read the fine print. π
π SEE ALSO π
- Kernel file
./drivers/hwmon/sht15.c 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_temp_show(9)sht15_humidity_show(9)sht15_invalidate_voltage(9)
like, the whole sht15 friend group is here β go read them all, iykyk. π
π§ a lil sign-off π§
this page lives in ./drivers/hwmon, dated October 2026 β that's the source/version and the date, bestie, so now you know where it came from. go forth and toggle that heater responsibly. slay. ππ
periodt. π
π¦ 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