pci_wake_from_d3(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the pci_wake_from_d3(9) page from the Kernel API Manual πŸ’– this is the PCI power-management helper with major clean-setup energy ✨

pci_wake_from_d3 β€” enable/disable device to wake up from D3_hot or D3_cold.


✨ SYNOPSIS ✨

int pci_wake_from_d3 (struct pci_dev *dev , bool enable );

🫢 ARGUMENTS 🫢

  • dev β€” PCI device to prepare. That's the one getting the wake-up glow-up πŸŽ€
  • enable β€” True to enable wake-up event generation; false to disable. Basically the on/off switch, but make it make sense πŸ’…

🧚 DESCRIPTION 🧚

so many drivers want their device to wake the whole system from D3_hot or D3_cold, and this function lets them set that up cleanly β€” no chaotic double-call energy. Do not call pci_enable_wake twice in a row just to enable wake-up, because there are PCI PM vs ACPI ordering constraints, and this function exists so you can dodge that whole mess. iykyk 😭

this function only returns an error code if the device is not allowed to wake up the system from sleep, or if it is not capable of generating PME# from both D3_hot and D3_cold and the platform is unable to enable wake-up power for it. that's the whole mood-killer list, fr fr πŸ’€


🌈 SEE ALSO 🌈

the whole PCI cinematic universe said β€œcome through” β€” kernel file first, then the full guest list, no cap:

okay that's the whole guest list, and honestly? iconic 🫢


mwah πŸ’‹ β€” source/version: ./drivers/pci Β· date: October 2026. this has been the pci_wake_from_d3(9) page, and you ate πŸ’…βœ¨

πŸ“¦ where this page comes from