STRUCT TEGRA_TSENSOR_GROUP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct tegra_tsensor_group(9) β€” Kernel API Manual, bestie edition πŸ’–

okay so this one is from the <pink>Kernel API Manual</pink>, and it's literally the whole glow-up guide to struct tegra_tsensor_group β€” the SOC_THERM sensor group data. it's giving "thermal management but make it fashion" ✨


🌸 NAME 🌸

struct tegra_tsensor_group β€” SOC_THERM sensor group data. that's it, that's the vibe 🫢


✨ SYNOPSIS ✨

here's the struct in all its glory, copy it exactly, no improvising πŸ’…

struct tegra_tsensor_group {
    const char *name;
    u8 id;
    u16 sensor_temp_offset;
    u32 sensor_temp_mask;
    u32 pdiv, pdiv_ate, pdiv_mask;
    u32 pllx_hotspot_diff, pllx_hotspot_mask;
    u32 thermtrip_enable_mask;
    u32 thermtrip_any_en_mask;
    u32 thermtrip_threshold_mask;
    u32 thermctl_isr_mask;
    u16 thermctl_lvl0_offset;
    u32 thermctl_lvl0_up_thresh_mask;
    u32 thermctl_lvl0_dn_thresh_mask;
 };

πŸŽ€ Members πŸŽ€

okay bestie, here's the roster β€” these are the fields the page actually introduces you to πŸ‘‘

  • name β€” the short name of the temperature sensor group. like a nickname but official πŸ’–
  • id β€” the numeric ID of the temperature sensor group. numbers are so main character πŸ”’
  • sensor_temp_offset β€” the offset of the SENSOR_TEMP* register. where the tea is stored πŸ“
  • sensor_temp_mask β€” the bit mask for this sensor group inside the SENSOR_TEMP* register. yes queen, mask it πŸ’…
  • pdiv β€” the sensor count post-divider to use during runtime. the everyday fit 🌸
  • pdiv_ate β€” the sensor count post-divider used during automated test. the test-day fit 🧚
  • pdiv_mask β€” the register bitfield mask for the PDIV field for this sensor. very demure, very masked ✨
  • pllx_hotspot_diff β€” the hotspot offset from the PLLX sensor, must be 0 for β€” and yeah, the sentence in the original page literally trails off right there 😭 not me leaving it exactly as it is, because facts are facts 🫢
  • pllx_hotspot_mask β€” the register bitfield mask for the HOTSPOT field. mask on, mask off πŸ”₯
heads up bestie πŸ™ˆ the struct up top also has thermtrip_enable_mask, thermtrip_any_en_mask, thermtrip_threshold_mask, thermctl_isr_mask, thermctl_lvl0_offset, thermctl_lvl0_up_thresh_mask and thermctl_lvl0_dn_thresh_mask β€” but this page doesn't say a single word about what they do, so i'm not gonna make it up. no invented lore on my watch πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

  • the kernel file ./drivers/thermal/tegra/soctherm.h β€” go read it, iykyk πŸ‘‘

and that's the page!! no cap, you ate this one πŸ“

signing off from ./drivers/thermal/tegra, edition of October 2026, struct tegra_tsensor_group(9) β€” mwah, love u, go stay cool (literally, thermal sensors) πŸ’œπŸŽ€

πŸ“¦ where this page comes from