__pci_device_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

__pci_device_probe β€” bestie, this is the little guy that checks if a driver actually wants to claim a specific PCI device πŸŽ€

(also hi, this is the Kernel API Manual, section 9, welcome to the group chat ✨)


✨ SYNOPSIS ✨

int __pci_device_probe (struct pci_driver *drv , struct pci_dev *pci_dev );

Like, that's the whole signature. Short king. πŸ‘‘


🫢 ARGUMENTS 🫢

  • drv β€” the driver we're calling up to ask the big question: do you want this PCI device or not, bestie? πŸ’–
  • pci_dev β€” the PCI device currently getting probed, i.e. the main character of this exact moment 🌟

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea: it returns 0 on success, else error. no cap, that's the whole return contract 😌

and the side-effect β€” the messy part, the iykyk β€” is that pci_dev->driver gets set to drv at the moment drv claims pci_dev. so like, the claiming is permanent-ish in the struct, it's giving "we're together now" energy πŸ’€πŸ’

ngl, remember that side-effect exists, because pci_dev->driver literally changes state out from under you. not a vibe to forget that 🫠

🌈 SEE ALSO 🌈

Kernel file ./drivers/pci/pci-driver.c β€” go read it, it's the source of truth fr fr πŸ“–

like, that's the whole friend group, go say hi to all of them πŸ¦‹πŸ’œ


and that's the page, bestie!! this one lives under ./drivers/pci and is dated October 2026, so like, future-coded slay ⭐🌈 mwah, go probe something iconic πŸ’…πŸŽ€

πŸ“¦ where this page comes from