---
name: "pci_enable_wake"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/pci_enable_wake"
---

# pci\_enable\_wake(9)

enable PCI device as wakeup event source

## NAME

pci\_enable\_wake - enable PCI device as wakeup event source

## SYNOPSIS

**int pci\_enable\_wake(struct pci\_dev \*** *dev***, pci\_power\_t** *state***, bool** *enable***);**

## ARGUMENTS

*dev*

PCI device affected

*state*

PCI state from which device will issue wakeup events

*enable*

True to enable event generation; false to disable

## DESCRIPTION

This enables the device as a wakeup event source, or disables it. When such events involves platform-specific hooks, those hooks are called automatically by this routine.

Devices with legacy power management (no standard PCI PM capabilities) always require such platform hooks.

## RETURN VALUE

0 is returned on success -EINVAL is returned if device is not supposed to wake up the system Error code depending on the platform is returned if both the platform and the native mechanism fail to enable the generation of wake-up events

## COPYRIGHT
