STRUCT TSENS_CONTEXT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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