thermtrip_program(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌑️✨ NAME ✨🌑️

thermtrip_program β€” configures the hardware to shut down the system if a given sensor group reaches a given temperature. πŸ’…

Okay bestie, this page is straight out of the Kernel API Manual, and it's about thermtrip_program(9).


πŸŽ€ SYNOPSIS πŸŽ€

int thermtrip_program (struct device *dev , const struct
tegra_tsensor_group *sg , int trip_temp );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” ptr to the struct device for the SOC_THERM IP block. 🫢
  • sg β€” pointer to the sensor group to set the thermtrip temperature for. This is the group getting its trip-threshold moment. ✨
  • trip_temp β€” the temperature in millicelsius to trigger the thermal trip at. Temperature, but make it milli. 😭

πŸ”₯ DESCRIPTION πŸ”₯

So this one sets the thermal trip threshold of the given sensor group to be trip_temp. If that threshold gets crossed, the hardware will shut down. πŸ’€ That's the whole vibe: crossing it = shutdown, no cap.

Note that even though trip_temp is specified in millicelsius, the hardware is programmed in degrees Celsius. Keep that unit glow-up in mind. ✨


πŸ‘‘ RETURN πŸ‘‘

0 upon success, or -EINVAL upon failure. That's it, bestie. πŸ’–


🌈 SEE ALSO 🌈


Source/version vibe check: this page lives at ./drivers/thermal/tegra, is dated October 2026, and is literally thermtrip_program(9) β€” bye bestie, stay thermal πŸ’…πŸ’–

πŸ“¦ where this page comes from