msi_domain_a...s_all_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 msi_domain_alloc_irqs_all_locked(9) 🌸

okay bestie, welcome to the Kernel API Manual β€” yes we're reading kernel docs for fun now, this is who we are πŸ’…


✨ NAME ✨

msi_domain_alloc_irqs_all_locked β€” allocate all the interrupts from a MSI interrupt domain. all of them. every last one. πŸŽ€


✨ SYNOPSIS ✨

int msi_domain_alloc_irqs_all_locked (struct device *dev , unsigned int domid , int nirqs );

✨ ARGUMENTS ✨

  • dev β€” pointer to the struct device of the device you're allocating interrupts for 🫢
  • domid β€” the id of the interrupt domain we're operating on, iykyk
  • nirqs β€” the number of interrupts to allocate. yes, a number. keep counting bestie πŸ”₯

✨ DESCRIPTION ✨

so the way this works is: this function scans all the MSI descriptors of the MSI domain and allocates interrupts for all the unassigned ones. that's it, that's the vibe check πŸ’€

it's the function you reach for when the MSI domain usage is one where the descriptor allocation is handled at the call site β€” for example PCI/MSI[X]. main character energy only ✨


✨ RETURN ✨

0 on success, or an error code. slay if it's 0, 😭 if it's not.


✨ SEE ALSO ✨

peep these, bestie β€” the whole friend group:


ngl this page lives in ./kernel/irq and it's dated October 2026 β€” go off, future kernel πŸ¦‹

okay that's the whole thing, you ate that fr fr πŸ‘‘ periodt πŸ’–

πŸ“¦ where this page comes from