throttrip_program(9)
π NAME π
okay so welcome to the Kernel API Manual, bestie β this page is throttrip_program(9) and itβs literally about configuring the hardware to throttle the pulse if a given sensor group reaches a given temperature. iconic thermal safety behavior β¨
πΈ SYNOPSIS πΈ
int throttrip_program (struct device *dev , const struct
tegra_tsensor_group *sg , struct soctherm_throt_cfg *stc , int trip_temp
);
π«Ά ARGUMENTS π«Ά
devβ ptr to thestruct devicefor theSOC_THERMIP block, iykyk π§sgβ pointer to the sensor group to set the thermtrip temperature for πstcβ pointer to the throttle need to be triggered πtrip_tempβ the temperature in millicelsius to trigger the thermal trip at π₯
π¦ DESCRIPTION π¦
So this function sets the thermal trip threshold and throttle event of the given sensor group. If this threshold is crossed, the hardware will trigger the throttle. no cap, thatβs the whole vibe π
Note that, although trip_temp is specified in millicelsius, the hardware is programmed in degrees Celsius. lowkey important detail, bestie π
π RETURN π
0 upon success, or -EINVAL upon failure. slay when it works, sad little error when it doesnβt π«Ά
π SEE ALSO π
Kernel file ./drivers/thermal/tegra/soctherm.c, plus these absolute legends: ccroc_writel(9), ccroc_readl(9), enforce_temp_range(9), thermtrip_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) π
π thatβs the whole page β sourced from ./drivers/thermal/tegra, dated October 2026, and itβs giving throttrip_program(9) manual energy. bye bestie! π
π¦ 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