ms_sensors_read_prom_word(9)
π ms_sensors_read_prom_word(9)
okay so bestie, welcome to the Kernel API Manual β¨ and more specifically to ms_sensors_read_prom_word, the ninth-section page that's giving "tiny but crucial" energy π
πΈ NAME πΈ
ms_sensors_read_prom_word β the PROM word read function π like, the whole function. that's her job. that's her whole personality. and honestly? she ate.
β¨ SYNOPSIS β¨
int ms_sensors_read_prom_word (void *cli , int cmd , u16 *word );
that's the whole signature, no cap π«Ά three little args and a dream.
π¦ ARGUMENTS π¦
cliβ pointer to device client. it's the device buddy you're talking to, fr fr.cmdβ PROM read cmd. and like, it depends on the device and on the prom id, so don't come for me if it's not one fixed value, it's giving "situational" πwordβ pointer to the word destination value. this is where the word goes. she's the landing spot. the final destination. main character of the output π
π₯ DESCRIPTION π₯
generic i2c prom word read function for Measurement Specialties devices β¨ that's it, that's the vibe β one lil generic helper doing the PROM-reading thing for the whole Measurement Specialties family of devices π§ lowkey iconic of her.
π RETURN π
0on success π slay- negative
errnootherwise π so like, if it's negative, something went sideways, check your errno bestie
π SEE ALSO π
the kernel file itself, in all her glory:
./drivers/iio/common/ms_sensors/ms_sensors_i2c.c
and the whole friend group π go say hi:
ms_sensors_reset(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_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)
and that's the page!! π«Ά mwah π this lived at ./drivers/iio/common/ms_sensors and was dated October 2026 β ty bestie for reading, go read some PROM words, ily, 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