pcie_aspm_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Okay bestie, you're looking at pcie_aspm_enabled(9) from the Kernel API Manual ✨ β€” the function that checks if PCIe ASPM has been enabled for a device. That's the whole vibe πŸ’…


✨ SYNOPSIS ✨

bool pcie_aspm_enabled (struct pci_dev *pdev );

πŸŽ€ ARGUMENTS πŸŽ€

  • pdev β€” the target device, bestie 🎯

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea: this one relies on the upstream bridge's link_state being valid 🫢 The link_state gets deallocated only when the last child of the bridge (i.e., pdev or a sibling) is removed, and the caller should be holding a reference to pdev, so this should be safe. Periodt ✨

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/pci/pcie/aspm.c β€” that's where it lives, iykyk πŸ‘‘

Go peek at these too:


πŸŽ€ source/version: ./drivers/pci/pcie Β· date: October 2026 Β· pcie_aspm_enabled(9) πŸŽ€

πŸ“¦ where this page comes from