pci_disable_link_state(9)
✨ NAME ✨
okay bestie, welcome to the pci_disable_link_state(9) page from the Kernel API Manual 💅 — this one is all about disabling a device's link state, so the link will never enter specific states. No cap.
Quick reality check, though: if the BIOS didn't grant ASPM control to the OS, this does nothing because we can't touch the LNKCTL register 🙈. It returns 0 or a negative errno.
🌸 SYNOPSIS 🌸
int pci_disable_link_state (struct pci_dev *pdev , int state );
🎀 ARGUMENTS 🎀
pdev— PCI device 🫶state— ASPM link state to disable ✨
🦋 SEE ALSO 🦋
- Kernel file:
./drivers/pci/pcie/aspm.c pcie_encode_t_power_on(9)pci_enable_link_state(9)pci_enable_link_state_locked(9)pcie_aspm_enabled(9)
🫶 cute lil sign-off: this page is from ./drivers/pci/pcie, dated October 2026, and it's giving very pci_disable_link_state(9) / Kernel API Manual energy — we folded the header situation in up top, so no need to copy-paste it down here, 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