pci_is_pcie(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pci_is_pcie β€” check if the PCI device is PCI Express capable

okay so bestie, it's a Kernel API Manual moment and this little function is literally the vibe check for PCIe πŸ’– it's pci_is_pcie from section 9, and it's about to tell you whether your device is PCI Express capable or not. no cap, that's the whole personality.


✨ SYNOPSIS ✨

bool pci_is_pcie (struct pci_dev *dev );

like, you hand it a device, it hands you back a bool. simple as that, periodt πŸŽ€


🌸 ARGUMENTS 🌸

  • dev β€” the PCI device 🫢 that's it, that's the whole argument. one (1) device, and it's the one we're checking.

⭐ RETURN ⭐

  • true 😭✨ if the PCI device is PCI Express capable
  • false πŸ’€ otherwise

literally that binary, no in-between, the function ate and left no crumbs πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/pci.h β€” plus the whole friend group, go say hi:

iykyk, it's a whole squad πŸ’…πŸŒˆ


lowkey reminder: ./include/linux is where it lives, and the docs are dated October 2026 β€” iconic, honestly πŸ“…βœ¨

that's the page bestie, go check your devices, slay, and stay PCIe-pilled πŸ§šπŸ’œ

πŸ“¦ where this page comes from