ms_sensors_write_heater(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 of buf. 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


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