STRUCT TSENS_FEATURES(9)
π
struct tsens_features(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one is all about the little struct that spills which features the IP supports π
πΈ NAME πΈ
struct tsens_features β Features supported by the IP π
no cap, it's the feature-vibe-check struct.
π¦ SYNOPSIS π¦
struct tsens_features {
unsigned int ver_major;
unsigned int crit_int:1;
unsigned int combo_int:1;
unsigned int adc:1;
unsigned int srot_split:1;
unsigned int has_watchdog:1;
unsigned int max_sensors;
int trip_min_temp;
int trip_max_temp;
};
π Members π
ver_majorβ the major number of the IP version π like the IP's main-character version era.crit_intβ does the IP support critical interrupts? π¨ yes/no tea.combo_intβ does the IP use one IRQ for up, low and critical thresholds? π one IRQ doing combo duty.adcβ do the sensors only output adc code (instead of temperature)? π‘οΈ plot twist: adc code only.srot_splitβ does the IP neatly split the register space into SROT and TM, with SROT only being available to secure boot firmware? π secure-boot-firmware-only energy.has_watchdogβ does this IP support watchdog functionality? π watchdog vibes check.max_sensorsβ maximum sensors supported by this version of the IP π« the sensor headcount limit.trip_min_tempβ minimum trip temperature supported by this version of the IP π₯Ά the low-temp trip boundary.trip_max_tempβ maximum trip temperature supported by this version of the IP π₯ the high-temp trip boundary.
β¨ SEE ALSO β¨
Kernel file ./drivers/thermal/qcom/tsens.h is the spot, and the related structs are:
struct tsens_sensor(9)struct tsens_ops(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)
okay that's the whole page, bestie π«Ά sparkle sign-off time: this one comes from the source path ./drivers/thermal/qcom, and its date stamp is October 2026 β¨ππ
π¦ 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