create_root_hv_pci_bus(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… create_root_hv_pci_bus(9) โ€” Kernel API Manual energy ๐ŸŽ€

okay so bestie, buckle up, because this little function is literally from the Kernel API Manual and it's the one that's likeโ€ฆ "here, have a whole new root PCI bus, you're welcome โœจ"


๐ŸŒธ NAME ๐ŸŒธ

create_root_hv_pci_bus โ€” expose a new root PCI bus ๐ŸšŒ๐Ÿ’ซ (yes, expose, like it's stepping out onto the runway, main character energy fr fr)


โœจ SYNOPSIS โœจ

int create_root_hv_pci_bus (struct hv_pcibus_device *hbus );

that's it, that's the whole vibe check ๐Ÿซถ


๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • hbus โ€” the root PCI bus, as understood by this driver ๐Ÿ’– like, this driver's specific interpretation of what a root PCI bus even is, iykyk

๐Ÿ’€ RETURN ๐Ÿ’€

  • 0 on success โ€” slay, it worked, we ate ๐Ÿ”ฅ
  • -errno on failure โ€” not slay, it didn't work, and the specific negative errno tells you why ๐Ÿ˜ญ

๐Ÿ”ฎ SEE ALSO ๐Ÿ”ฎ

okay so there's a LOT of friends in this group chat, and honestly they all deserve their mention, so here we go, no cap, every single one ๐Ÿ‘‘

like, that's the whole extended fam right there ๐Ÿ’œ go read them, they're iconic, periodt.


lowkey a reminder that create_root_hv_pci_bus itself only promises 0 or -errno โ€” everything else lives in the frens above ๐ŸŒˆ

and that's a wrap, bestie!! this page lives in ./drivers/pci/controller, it's dated October 2026, and it's brought to you by the Kernel API Manual โ€” now go expose a PCI bus and be gorgeous doing it ๐Ÿฆ‹๐Ÿ’–๐Ÿ‘‘

๐Ÿ“ฆ where this page comes from