devm_platfo...rqs_affinity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– devm_platform_get_irqs_affinity(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this one is all about devm_platform_get_irqs_affinity, and no cap, it's a little baddie that gets you a whole set of IRQs for a device using an interrupt affinity descriptor. let's get into it πŸŽ€


🌸 NAME 🌸

devm_platform_get_irqs_affinity β€” the devm method that grabs you a set of IRQs for a device using an interrupt affinity descriptor. literally that's the whole vibe πŸ¦‹


✨ SYNOPSIS ✨

int devm_platform_get_irqs_affinity (struct platform_device *dev ,
struct irq_affinity *affd , unsigned int minvec , unsigned int maxvec ,
int **irqs );

like, that's the whole signature bestie, copy it exactly or the compiler will absolutely read you πŸ’…


🫢 ARGUMENTS 🫢

  • dev β€” platform device pointer. the main character, the device in question πŸ‘‘
  • affd β€” affinity descriptor. this is the blueprint for how the IRQ affinity gets set up πŸ’–
  • minvec β€” minimum count of interrupt vectors. the floor, the bare minimum, the "at least this many" πŸ“
  • maxvec β€” maximum count of interrupt vectors. the ceiling, the "no more than this" ⭐
  • irqs β€” pointer holder for IRQ numbers. you hand it a spot and it puts the IRQ numbers there πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

so what does it actually do? it gets a set of IRQs for a platform device, and then it updates the IRQ affinity according to the affinity descriptor you passed in. that's it, that's the whole flex πŸ”₯

(also ngl, the original source spells it "afffinty" with three fs β€” iconic typo behavior, but the meaning is 100% "affinity", don't come for me 😭)


🌈 RETURN 🌈

  • number of vectors on success βœ… slay
  • a negative error number on failure πŸ’€ not slay

🧚 SEE ALSO 🧚

everything else in the kernel family, bestie β€” go read these if you're obsessed like me:

Kernel file ./drivers/base/platform.c


and that's the whole page bestie, mwah πŸ’‹ this little icon came from ./drivers/base, dated October 2026 β€” see you in the next manpage, love u bye πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from