pciehp_slot_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay bestie, welcome to pciehp_slot_reset(9) from the Kernel API Manual β€” yes, we’re doing kernel hotplug lore today and it’s lowkey iconic. This page is about ignoring the link event caused by an error-induced hot reset πŸ’…βœ¨

  • pciehp_slot_reset β€” ignore link event caused by error-induced hot reset πŸŽ€

✨ SYNOPSIS ✨

The whole signature is giving:

int pciehp_slot_reset (struct pcie_device *dev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” PCI Express port service device. That’s the one and only argument, bestie 🫢

🌸 DESCRIPTION 🌸

Okay so the lore: this is called from pcie_portdrv_slot_reset after AER or DPC initiated a reset further up in the hierarchy to recover from an error. The reset was propagated down to this hotplug port. Your main-character job: ignore the resulting link flap πŸ’…

If the link failed to retrain successfully, synthesize the ignored event. Surprise removal during reset is detected through Presence Detect Changed. No cap, that’s the whole flow 😭✨


🌈 SEE ALSO 🌈

Go read these next, iykyk:

Catch you in the source, bestie 🫢 β€” source/version: ./drivers/pci/hotplug β€” date: October 2026 β€” page: pciehp_slot_reset(9) πŸŒˆπŸ’–

πŸ“¦ where this page comes from