throttrip_program(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the struct device for the SOC_THERM IP 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