STRUCT TSENS_CONTEXT(9)
hey bestie π this is <struct tsens_context(9)> from the Kernel API Manual β and she's here to explain registers that get saved/restored across a context loss. periodt. π
π NAME π
struct tsens_context β registers to be saved/restored across a context loss, literally. It's giving "keep the threshold and control values safe when the context dips" energy. No cap. π«Ά
β¨ SYNOPSIS β¨
okay so here's the whole struct, bestie:
struct tsens_context {
int threshold;
int control;
};
Two ints. That's the whole squad. π
πΈ Members πΈ
thresholdβ the threshold register value. That's her job. πcontrolβ the control register value. Iconic, tbh. β¨
π₯ SEE ALSO π₯
bestie, the Kernel file is ./drivers/thermal/qcom/tsens.h, and the whole friend group is right here:
struct tsens_sensor(9)struct tsens_ops(9)struct tsens_features(9)struct tsens_plat_data(9)struct tsens_priv(9)struct tsens_single_value(9)struct tsens_legacy_calibration_format(9)
iykyk β go read the whole thermal qcom crew. π
made with π from ./drivers/thermal/qcom β October 2026 β struct tsens_context(9) β¨
π¦ 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