pci_rescan_b...ridge_resize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pci_rescan_bus_bridge_resize β€” the Kernel API Manual, bestie edition ✨

okay so real talk, this is a page from the Kernel API Manual (pci_rescan_b...ridge_resize(9), yes the title is abbreviated, that's just how the man page renders it, don't come for me πŸ™ˆ). Let's get into it, because this one is honestly kind of a bop.


🌸 NAME 🌸

pci_rescan_bus_bridge_resize β€” literally just scan a PCI bus for devices. That's the whole vibe. πŸ”


✨ SYNOPSIS ✨

unsigned int pci_rescan_bus_bridge_resize (struct pci_dev *bridge );

that's it. that's the whole incantation. she's compact and she knows it πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • bridge β€” the PCI bridge for the bus you wanna scan. this is your main character pointer, the one you're handing the whole quest to 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually do? bestie, she goes off:

  • Scans a PCI bus and its child buses for new devices πŸ‘€
  • Adds them in
  • Enables them
  • And resizes the bridge mmio/io resource if necessary and possible
⚠️ okay important caveat, no cap: the caller must ensure the child devices are already removed for resizing to occur. Like, you gotta clear the space yourself first or the resize literally cannot happen. not me warning you twice πŸ”₯

And the return value? She gives you back the max number of subordinate bus discovered. iconic. πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

all her friends, fr fr β€” and while we're here, the relevant kernel file is ./drivers/pci/probe.c, just fyi iykyk:

like, she has a whole friend group. obsessed. 🌈


and that's the page!! tysm for reading bestie, go scan some buses responsibly πŸ§šπŸ’–

sign-off time: this lil masterpiece lives under ./drivers/pci and it's dated October 2026 ⭐ (yes, future-dated, she's ahead of her time, we love that for her) β€” mwah, catch you on the next man page πŸ’‹πŸŽ€

πŸ“¦ where this page comes from