pci_hp_add_devices(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pci_hp_add_devices(9) β€” the Kernel API Manual glow-up πŸ’–

okay so bestie, welcome to the Kernel API Manual page for pci_hp_add_devices β€” yes that's the whole title, we're starting strong ✨


🌸 NAME 🌸

pci_hp_add_devices β€” adds new pci devices to bus πŸŽ€ (that's it, that's the whole gig, and she does it well)


πŸ¦‹ SYNOPSIS πŸ¦‹

void pci_hp_add_devices (struct pci_bus *bus );

literally copy that exactly, don't be cute with the spacing, bus is a pointer and the signature is the signature, periodt πŸ’…


✨ ARGUMENTS ✨

  • bus β€” the indicated PCI bus 🚌 like, the bus, the one you're pointing at, the main character of this whole operation

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the vibe: this routine will find and fixup new pci devices under the indicated bus. she goes looking, she finds them, she gets them all set up 🫢

and here's the part that's genuinely iconic β€” this routine presumes that there might already be some devices under this bridge, so it carefully tries to add only new devices. no stomping on the existing ones, no duplicates, she's respectful like that 😌

and that, bestie, is how this routine differs from other, similar pcibios routines. iykyk πŸ’«

ngl the "only new devices" bit is the whole personality of this function β€” if you were wondering what makes her special vs. the other pcibios routines, it's that. don't sleep on it πŸ™ˆ

🌈 SEE ALSO 🌈

  • Kernel file ./arch/powerpc/kernel/pci-hotplug.c β€” go read the source, she's right there πŸ“‚
  • pcibios_release_device(9) β€” the releasing counterpart πŸ‘‹
  • pci_hp_remove_devices(9) β€” and this one takes devices away, the opposite energy πŸ’€

🧚 sign-off 🧚

that's the whole page, bestie β€” brought to you from ./arch/powerpc/kernel, dated October 2026, and she ate πŸ’…βœ¨ no cap, go add some devices responsibly πŸŽ€πŸ’–

πŸ“¦ where this page comes from