---
name: "pci_wake_from_d3"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/pci_wake_from_d3"
---

# pci\_wake\_from\_d3(9)

enable/disable device to wake up from D3\_hot or D3\_cold

## NAME

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

*enable*

True to enable wake-up event generation; false to disable

## DESCRIPTION

Many drivers want the device to wake up the system from D3\_hot or D3\_cold and this function allows them to set that up cleanly - **pci\_enable\_wake** should not be called twice in a row to enable wake-up due to PCI PM vs ACPI ordering constraints.

This function only returns error code if the device 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.

## COPYRIGHT
