pci_enable_l...state_locked(9)
π pci_enable_l...state_locked(9) π
okay so this page is from the Kernel API Manual, and the function is literally pci_enable_link_state_locked. We are so back. π
π NAME π
pci_enable_link_state_locked β Clear and set the default device link state so that the link may be allowed to enter the specified states. β¨
Heads up bestie: if the BIOS didn't grant ASPM control to the OS, this does nothing because we can't touch theLNKCTLregister. Also note that this does not enable states disabled bypci_disable_link_state(). Return0or a negativeerrno. π«Ά
πΈ SYNOPSIS πΈ
int pci_enable_link_state_locked (struct pci_dev *pdev , int state );
π ARGUMENTS π
pdevβ PCI device.stateβ Mask of ASPM link states to enable.
π¦ NOTE π¦
Ensure devices are in D0 before enabling PCI-PM L1 PM Substates, per PCIe r6.0, sec 5.5.4. no cap, do the vibe check first. β¨
π CONTEXT π
Caller holds pci_bus_sem read lock. periodt. π
π SEE ALSO π
Kernel file ./drivers/pci/pcie/aspm.c also sends you over to:
cute sign-off: the source/version on this one is ./drivers/pci/pcie, and the date is October 2026. mwah π
π¦ 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