pci_rescan_b...ridge_resize(9)
π 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/ioresource 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:
__pci_size_bars(9)__pci_read_base(9)pcie_get_link_speed(9)pci_ea_fixed_busnrs(9)pci_ext_cfg_is_aliased(9)pci_cfg_space_size_ext(9)pci_intx_mask_broken(9)pci_setup_device(9)pcie_relaxed_ordering_enabled(9)pci_release_dev(9)pci_scan_slot(9)pci_scan_child_bus_extend(9)pci_scan_child_bus(9)pcibios_root_bridge_prepare(9)pci_rescan_bus(9)
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
- 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