ms_sensors_show_heater(9)
β¨ ms_sensors_show_heater β¨
okay bestie, gather round, because we're diving into the Kernel API Manual and this one is literally about asking a tiny sensor chip whether its heater is turned on. no cap. let's get into it π
π¦ SYNOPSIS π¦
ssize_t ms_sensors_show_heater(struct ms_ht_dev *dev_data, char *buf);
π ARGUMENTS π
dev_dataβ pointer to temperature/humidity device data. this is your little sensor bestie's info struct, slay.bufβ pointer to char buffer to write result. this is where the answer goes, periodt.
π DESCRIPTION π
so the way this works is: this function will read the heater enable value in the device and return 1 if the heater is enabled. iconic behavior, honestly.
she's used for HTU21 and MS8607 chipsets. those are her main characters π«Ά
πΈ RETURN πΈ
- length of
sprintfon success π - negative
errnootherwise π
ngl if you get a negative errno back, something went wrong and you should probably pay attention to it. fr fr.
π 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_write_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)
like, the whole ms_sensors friend group is here. iykyk π
and that's the whole page bestie!! this gem lives in ./drivers/iio/common/ms_sensors, dropped October 2026, and you can find her under ms_sensors_show_heater(9). go check the heater, bestie, and slay the day πβ¨
π¦ 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