pci_host_br...i_msi_domain(9)
π 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):
pciehp_is_native(9)shpchp_is_native(9)pci_acpi_wake_bus(9)pci_acpi_wake_dev(9)pci_acpi_add_root_pm_notifier(9)pci_acpi_add_pm_notifier(9)pci_dev_acpi_reset(9)pci_acpi_set_companion_lookup_hook(9)pci_acpi_clear_companion_lookup_hook(9)pci_acpi_optimize_delay(9)pci_msi_register_fwnode_provider(9)
reminder bestie:NULLis a real answer here, not a personal attack π error or no domain found, sameNULL, 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms