STRUCT MS_TP_DEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct ms_tp_dev(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual entry for struct ms_tp_dev β€” the little struct that's giving Temperature/Pressure sensor device realness. it's struct ms_tp_dev(9), and honestly? iconic. let's get into it πŸ’…


✨ NAME ✨

struct ms_tp_dev β€” a Temperature/Pressure sensor device structure. that's the whole vibe. it's the struct holding the deets for one of those sensors πŸ¦‹


🌸 SYNOPSIS 🌸

struct ms_tp_dev {
    struct i2c_client *client;
    struct mutex lock;
    const struct ms_tp_hw_data *hw;
    u16 prom[MS_SENSORS_TP_PROM_WORDS_NB];
    u8 res_index;
 };

look at her. five fields. main character energy fr fr πŸ‘‘


πŸ’– Members πŸ’–

  • client β€” the i2c client. that's it, that's the blurb 🫢
  • lock β€” a lock that protects the i2c conversion. no cap, it's keeping things from stepping on each other's toes 😭
  • prom β€” the array of PROM coefficients used for conversion. and lowkey important: it's got an added element for CRC computation ⭐
  • res_index β€” the index pointing to the selected sensor resolution. tiny field, big job πŸŽ€
okay so hw is sitting right there in the struct too, but the page doesn't hand it its own little description, so I'm not out here inventing one. we respect the source in this group chat πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/iio/common/ms_sensors/ms_sensors_i2c.h β€” the header, go read it, iykyk
  • struct ms_ht_dev(9) β€” the other struct, go say hi 🌈

and that's the tea, bestie πŸ’œ this one lives at ./drivers/iio/common/ms_sensors, it's dated October 2026, and yes the page signs off as struct ms_tp_dev(9) β€” same energy, same source. slay, go read some sensor structs, ily 🧚✨

πŸ“¦ where this page comes from