pci_rescan_bus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸŽ‰:

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