soctherm_oc_int_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

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