of_msi_get_domain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_msi_get_domain(9) πŸ’…

okay so this is a page straight out of the Kernel API Manual, and it's literally about one tiny little function that goes looking for your MSI domain using msi-parent. stay with me bestie, it's shorter than you think 🫢


✨ NAME ✨

of_msi_get_domain β€” uses msi-parent to find the relevant MSI domain, no cap


πŸ¦‹ SYNOPSIS πŸ¦‹

struct irq_domain * of_msi_get_domain (struct device *dev , const struct
       device_node *np , enum irq_domain_bus_token token );

like, it hands you back a struct irq_domain * and takes three lil arguments. that's the whole vibe ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device you're requesting the domain for, bestie. it's giving "who is this for" 🫢
  • np β€” the device node for dev. the matching node, the other half, the pair πŸ’–
  • token β€” the bus type for this domain. yes it matters, it's the vibe check for which domain you get 🌸

πŸ’… DESCRIPTION πŸ’…

so what it does is parse the msi-parent property and return the corresponding MSI domain. that's it. that's the whole function. iconic, honestly πŸ‘‘


⭐ RETURN ⭐

the MSI domain for this device β€” or NULL on failure, and we do NOT gatekeep that possibility 😭


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/of/irq.c, and here's the whole friend group of related pages, fr fr:


ngl this one's a quick read β€” go touch some grass, then come back and read the whole of_irq_* family πŸ’œ

mwah πŸ’‹ that's a wrap! this lil page came from the source tree at ./drivers/of, dated October 2026, and it's still called of_msi_get_domain(9) β€” same name, same numbers, always πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from