soctherm_ir...late_twocell(9)
π NAME π
soctherm_irq_domain_xlate_twocell β okay so this is the xlate for soctherm interrupts, straight out of the Kernel API Manual bestie, and it's lowkey the translator that turns your device tree's two little cells into a real IRQ π
β¨ SYNOPSIS β¨
int soctherm_irq_domain_xlate_twocell (struct irq_domain *d , struct
device_node *ctrlr , const u32 *intspec , unsigned int intsize ,
irq_hw_number_t *out_hwirq , unsigned int *out_type );
π ARGUMENTS π
dβ Interrupt request domain. the main character of the whole operation fr.ctrlrβ Controller device tree node. the node that's holding it down πΈintspecβ Array of u32s from DT's"interrupt"property. yes it's literally that.intsizeβ Number of values inside theintspecarray. count 'em πout_hwirqβ HW IRQ value associated with this interrupt. this is where the answer lands β¨out_typeβ The IRQ SENSE type for this interrupt. the vibe of the interrupt, basically π¦
πΈ DESCRIPTION πΈ
Okay so picture this: this Device Tree IRQ specifier translation function will translate a specific "interrupt" as defined by 2 DT values, where the cell values map the hwirq number + 1 and linux irq flags.
And here's the lil plot twist π since the output is the hwirq number, this function will subtract 1 from the value listed in DT. so DT says N+1, you get N. math girlies stay winning π§
β RETURN β
0
that's it. that's the return. iconic, minimal, no notes π
π SEE ALSO π
Kernel file ./drivers/thermal/tegra/soctherm.c
ccroc_writel(9)ccroc_readl(9)enforce_temp_range(9)thermtrip_program(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_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)
ngl if you're deep in the thermal driver trenches, that whole list is your reading list. go off π«Ά
mwah π that's the whole page! this vibe sesh came to you from ./drivers/thermal/tegra, dated October 2026, and it's the soctherm_ir...late_twocell(9) page β bestie, you're so welcome π
π¦ 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