pci_is_thunderbolt_attached(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pci_is_thunderbolt_attached β€” the Kernel API Manual ✨

okay so bestie, gather round, because we're about to find out whether your PCI device is living its little life on a Thunderbolt daisy chain or whether it's literally soldered to the motherboard with no escape. πŸ¦‹ this one's a bool-returning king and honestly it ate. πŸ’…


🌸 SYNOPSIS 🌸

bool pci_is_thunderbolt_attached (struct pci_dev *pdev );

πŸŽ€ ARGUMENTS πŸŽ€

  • pdev β€” the PCI device we're vibe-checking. that's it, that's the whole input. 🫢

✨ DESCRIPTION ✨

so the way this works is iconic: it walks upwards from pdev and checks, for each bridge it encounters, whether that bridge is part of a Thunderbolt controller. 🌈

and if it reaches the host bridge? that means pdev is not Thunderbolt-attached. nope, not even a little. and tbh it's probably just soldered straight to the mainboard β€” like, permanently. no cap. 😭

lowkey the important thing to remember: reaching the host bridge is the "nope, not Thunderbolt" signal, and it usually means the device is physically stuck to the motherboard. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page, bestie β€” go forth and check those bridges πŸ’–

and before you close the tab: this little icon lives in ./include/linux, dated October 2026, and it's the pci_is_thunderbolt_attached(9) page. slay. πŸŽ€βœ¨

πŸ“¦ where this page comes from