STRUCT TSENS_FEATURES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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