soctherm_oc_int_init(9)
π soctherm_oc_int_init(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes this is a section 9 manpage, yes it's from the kernel API manual, and yes we're gonna get through it together. This one's about soctherm_oc_int_init, and it's genuinely not that deep, i promise π«Ά
πΈ NAME πΈ
soctherm_oc_int_init β the initial enabling of the over current interrupts, periodt π
β¨ SYNOPSIS β¨
int soctherm_oc_int_init (struct fwnode_handle *fwnode , int num_irqs );
like that's the whole signature, she's not complicated π
π ARGUMENTS π
fwnodeβ the devicetree node for soctherm π³ (yes, the devicetree node, like the actual fwnode handle for soctherm, that one)num_irqsβ the number of new interrupt requests π₯ lowkey just a count, bestie, nothing spooky
π¦ DESCRIPTION π¦
So what does she actually do? She sets the over current interrupt request chip data β¨ that's it, that's the vibe. Not me hyping up a one-line description but here we are π
β RETURN β
okay so the return values, pay attention bestie:
0β on success π or also if overcurrent interrupts are not enabled (iconic of her honestly, two ways to win)-ENOMEMβ out of memory πirq_baseβ returned if the function failed to allocate the irqs π
ngl, that last one is a little cursed β a non-zero base value coming back as a failure case? but that's literally what the page says so i'm not gonna make stuff up about it fr fr π«Ά
π SEE ALSO π
the full squad, no cap, everybody's here π β kernel file ./drivers/thermal/tegra/soctherm.c plus:
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_irq_domain_xlate_twocell(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)
like, the whole thermal tegra friend group showed up and they all ate π β¨
and that's the page!! mwah π this one shipped out with ./drivers/thermal/tegra as the source and October 2026 as the date, so happy reading bestie, go forth and init those over current interrupts πΈπ¦π
π¦ 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