STRUCT MS_TP_DEV(9)
π 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
- 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