ms_sensors_read_prom_word(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸŽ€

  • 0 on success πŸŽ‰ slay
  • negative errno otherwise 😭 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:


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