soctherm_ir...late_twocell(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the intspec array. 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


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