thermtrip_program(9)
π‘οΈβ¨ 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 thestruct devicefor theSOC_THERMIP 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 π
- Kernel file
./drivers/thermal/tegra/soctherm.c ccroc_writel(9)ccroc_readl(9)enforce_temp_range(9)throttrip_program(9)tegra_soctherm_set_hwtrips(9)soctherm_thermal_isr_thread(9)soctherm_oc_intr_enable(9)soctherm_handle_alarm(9)soctherm_edp_isr_thread(9)soctherm_edp_isr(9)soctherm_oc_irq_lock(9)soctherm_oc_irq_sync_unlock(9)soctherm_oc_irq_enable(9)soctherm_oc_irq_disable(9)soctherm_oc_irq_map(9)soctherm_irq_domain_xlate_twocell(9)soctherm_oc_int_init(9)soctherm_init_hw_throt_cdev(9)throttlectl_cpu_level_cfg(9)throttlectl_cpu_level_select(9)throttlectl_cpu_mn(9)throttlectl_gpu_level_select(9)soctherm_throttle_program(9)
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
- 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