pci_rescan_bus(9)
π pci_rescan_bus(9) β the Kernel API Manual glow-up
okay so bestie, welcome to pci_rescan_bus(9), straight out of the Kernel API Manual β¨ this one's a whole little baddie of a function and honestly? it's giving "let me just check who's new in the building" energy π
β¨ NAME β¨
pci_rescan_bus β Scan a PCI bus for devices ππ¦
like, the entire job. that's it. she scans. she finds. she slays.
πΈ SYNOPSIS πΈ
unsigned int pci_rescan_bus (struct pci_bus *bus );
look at her. one argument. no cap, she's low-key elegant π
π ARGUMENTS π
busβ PCI bus to scan πβ¨ the actual bus she's gonna go rummage through, bestie. the main character of this whole operation.
π DESCRIPTION π
So here's the tea β β pci_rescan_bus scans a PCI bus and its child buses looking for new devices, adds them, and enables them. Like a little talent scout walking the whole family tree of buses and going "ooh, new friend, you're in, you're enabled, welcome to the team" π«Άπ
And because she's generous, she returns the max number of subordinate bus discovered π that's the return value, bestie β the biggest count of subordinate buses she found down there. iconic behavior fr fr.
ngl this is the "did anything get hot-plugged while I wasn't looking" function and she ate ππ₯
π¦ SEE ALSO π¦
Kernel file ./drivers/pci/probe.c β and like, the whole group chat of related functions, all of them invited to the party π:
__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_bridge_resize(9)
go read them too, iykyk ππ
aaaand that's the whole page, bestie ππ tysm for reading, mwah π
so this whole thing lives over in ./drivers/pci, dated October 2026, and it's literally titled pci_rescan_bus(9) β that's the source, the version, and the date, all wrapped up in a little bow πβ¨ bye pookie, go scan some buses π¦π
π¦ 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