ms_sensors_write_heater(9)
π ms_sensors_write_heater(9) π
okay bestie, welcome to the Kernel API Manual entry for ms_sensors_write_heater β yes, itβs giving βtiny function, very specific jobβ energy, and weβre gonna get into it. π
β¨ NAME β¨
ms_sensors_write_heater β write device heater π₯
πΈ SYNOPSIS πΈ
ssize_t ms_sensors_write_heater (struct ms_ht_dev *dev_data , const char
*buf , size_t len );
π¦ ARGUMENTS π¦
dev_dataβ pointer to temperature/humidity device data. literally the deviceβs little info stash πbufβ pointer to char buffer from user space. yes, from user space, bestie πlenβ length ofbuf. gotta know how much buffer weβre working with π«Ά
π DESCRIPTION π
This function will write 1 or 0 value in the device to enable or disable heater. no cap, thatβs the whole vibe: 1 = heater on, 0 = heater off. π₯
This function is used for HTU21 and MS8607 chipsets. iconic little chipset moment, fr fr. β¨
β RETURN β
length of buffer, negative errno otherwise. so: happy path gives you the buffer length, sad path gives you a negative errno. periodt. π
π SEE ALSO π
Kernel file ./drivers/iio/common/ms_sensors/ms_sensors_i2c.c
ms_sensors_reset(9)ms_sensors_read_prom_word(9)ms_sensors_convert_and_read(9)ms_sensors_crc_valid(9)ms_sensors_read_serial(9)ms_sensors_write_resolution(9)ms_sensors_show_battery_low(9)ms_sensors_show_heater(9)ms_sensors_ht_read_temperature(9)ms_sensors_ht_read_humidity(9)ms_sensors_tp_crc4(9)ms_sensors_tp_crc_valid_112(9)ms_sensors_tp_crc_valid_128(9)ms_sensors_tp_read_prom(9)ms_sensors_read_temp_and_pressure(9)
okay thatβs the whole page, bestie π«Ά β sourced from ./drivers/iio/common/ms_sensors, dated October 2026, and yes, the page is literally ms_sensors_write_heater(9). 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