pciehp_slot_reset(9)
π 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:
- Kernel file:
./drivers/pci/hotplug/pciehp_hpc.c pcie_write_cmd(9)pciehp_check_link_active(9)pciehp_card_present(9)pciehp_card_present_or_link_active(9)pciehp_set_indicators(9)
Catch you in the source, bestie π«Ά β source/version: ./drivers/pci/hotplug β date: October 2026 β page: pciehp_slot_reset(9) ππ
π¦ 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