pci_enable_wake(9)

pci_enable_wake9

Enable pci device as wakeup event source

Usage

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

Overview

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

Releases

3 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.