STRUCT TSENS_SENSOR(9)
β¨ NAME β¨
okay bestie, welcome to the Kernel API Manual page for struct tsens_sensor(9) β literally the data for each sensor connected to the tsens device π
no cap.
π«Ά SYNOPSIS π«Ά
here's the whole struct, served fresh:
struct tsens_sensor {
struct tsens_priv *priv;
struct thermal_zone_device *tzd;
int offset;
unsigned int hw_id;
int slope;
u32 status;
int p1_calib_offset;
int p2_calib_offset;
};
π Members π
privβ the tsens device instance that this sensor is connected to, iykyk.tzdβ pointer to the thermal zone that this sensor is in.offsetβ offset of the temperature adjustment curve.hw_idβ HW ID, which can be used in case of platform-specific IDs.slopeβ slope of the temperature adjustment curve.statusβ an 8960-specific variable to track the 8960 and 8660 status register offset.
quick heads-up π«: the synopsis also carries p1_calib_offset and p2_calib_offset, but this page doesn't give those two their own member blurbs. that's just the tea, fr fr.
π SEE ALSO π
check these besties out:
- Kernel file
./drivers/thermal/qcom/tsens.h struct tsens_ops(9)struct tsens_features(9)struct tsens_plat_data(9)struct tsens_context(9)struct tsens_priv(9)struct tsens_single_value(9)struct tsens_legacy_calibration_format(9)
mwah π this one comes from ./drivers/thermal/qcom, dated October 2026, and it's filed under struct tsens_sensor(9). 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