pci_host_br...i_msi_domain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pci_host_br...i_msi_domain(9) β€” like, the Kernel API Manual page, bestie ✨

okay so picture this: you're deep in the kernel, staring at a PCI host bridge, and you're like "girl, where is your MSI domain??" 😭 that's literally this page. it lives in the Kernel API Manual, and the function is pci_host_bridge_acpi_msi_domain (yes the header truncates it to pci_host_br...i_msi_domain(9), she's just being dramatic πŸ’…).


🌸 SYNOPSIS 🌸

struct irq_domain * pci_host_bridge_acpi_msi_domain (struct pci_bus *bus
);

like, it takes a bus and hands you back a struct irq_domain * β€” that's the whole vibe ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • bus β€” the PCI host bridge bus πŸ’– that's it, that's the one (1) argument, she's lowkey simple like that.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜•: this function calls up the callback function that got registered by pci_msi_register_fwnode_provider, and uses it to retrieve the irq_domain with type DOMAIN_BUS_PCI_MSI for the specified host bridge bus. no cap, that's the whole move 🫢

and then β€” this is the important part, don't skip it πŸ™ˆ β€” it returns NULL on error, or when the domain is just… not found. so if you get NULL back, that's not a bug, that's just her telling you the domain isn't there πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

this function is hanging out in the kernel file ./drivers/pci/pci-acpi.c β€” go say hi πŸ’œ and while you're in the neighborhood, here's the whole friend group (iykyk):


reminder bestie: NULL is a real answer here, not a personal attack 😭 error or no domain found, same NULL, same energy πŸŽ€

✨ sign-off time ✨ this icon of a page comes from ./drivers/pci, dated October 2026 β€” and that's the whole manual entry, periodt πŸ’…πŸ¦‹πŸ’–

πŸ“¦ where this page comes from