pciehp_check_link_active(9)
π pciehp_check_link_active(9) β Kernel API Manual era π
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:
pcie_write_cmd(9)pciehp_card_present(9)pciehp_card_present_or_link_active(9)pciehp_set_indicators(9)pciehp_slot_reset(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms