pciehp_check_link_active(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is pciehp_check_link_active(9), straight from the Kernel API Manual, and it is literally here to tell you if the link is active, bestie πŸ¦‹

✨ NAME ✨

pciehp_check_link_active β€” Is the link active

🌸 SYNOPSIS 🌸

int pciehp_check_link_active (struct controller *ctrl );

πŸŽ€ ARGUMENTS πŸŽ€

  • ctrl β€” the PCIe hotplug controller, aka the main character of this function πŸ‘‘

πŸ’… DESCRIPTION πŸ’…

Checks whether the downstream link is currently active. That's the vibe check: link active or link not active πŸ’«

⚠️ Heads up, bestie: it is possible that the card is removed immediately after this check, so the caller may need to take that into account. No cap, that timing window is real 😭

If the hotplug controller itself is not available anymore, it returns -ENODEV. 🫢

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./drivers/pci/hotplug/pciehp_hpc.c:


mwah πŸ’‹ this little page comes from ./drivers/pci/hotplug, dated October 2026, and it stars pciehp_check_link_active(9) β€” periodt βœ¨πŸ‘‘

πŸ“¦ where this page comes from