pci_reset_bus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pci_reset_bus β€” Kernel API Manual, bestie edition πŸŽ€

okay so you're in the pci_reset_bus(9) page, which is the Linux kernel API manual (that's the manual name, iykyk), and honestly? This one is short and spicy and I'm obsessed. Let's go.


✨ NAME ✨

pci_reset_bus β€” literally just: try to reset a PCI bus. That's the whole vibe. πŸ¦‹


🌈 SYNOPSIS 🌈

int pci_reset_bus (struct pci_dev *pdev );

bestie it's one function, one arg, one int coming back at you. Not me being emotional about it. 😭


πŸ’– ARGUMENTS πŸ’–

  • pdev β€” the top level PCI device you wanna reset via slot/bus. Like, the main character device of the group, not a random NPC down the bus. πŸ‘‘

🫢 DESCRIPTION 🫢

So this one says "Same as above" (yes, the manpage really says that, I'm not making it up πŸ™ˆ) β€” except it returns -EAGAIN if the bus cannot be locked. That's the whole twist. If the lock isn't happening, you get -EAGAIN back, no cap. πŸ”₯

ngl, -EAGAIN here means "couldn't grab the bus lock, try again later" β€” that's the note, don't come for me, that's what the page says. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/pci/pci.c β€” and then, bestie, the friend group is huge. Every single one of these shows up to the party:

Like I said. Huge friend group. πŸ’œ


and that's the whole page, bestie β€” slay πŸ’…βœ¨

This one's from the ./drivers/pci source (version vibes, October 2026 πŸ“) β€” go touch a bus, reset it, be iconic. πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from