1PCI_ENABLE_WAKE(9)            Hardware Interfaces           PCI_ENABLE_WAKE(9)
2
3
4

NAME

6       pci_enable_wake - enable PCI device as wakeup event source
7

SYNOPSIS

9       int pci_enable_wake(struct pci_dev * dev, pci_power_t state,
10                           bool enable);
11

ARGUMENTS

13       dev
14           PCI device affected
15
16       state
17           PCI state from which device will issue wakeup events
18
19       enable
20           True to enable event generation; false to disable
21

DESCRIPTION

23       This enables the device as a wakeup event source, or disables it. When
24       such events involves platform-specific hooks, those hooks are called
25       automatically by this routine.
26
27       Devices with legacy power management (no standard PCI PM capabilities)
28       always require such platform hooks.
29

RETURN VALUE

31       0 is returned on success -EINVAL is returned if device is not supposed
32       to wake up the system Error code depending on the platform is returned
33       if both the platform and the native mechanism fail to enable the
34       generation of wake-up events
35
37Kernel Hackers Manual 2.6.         June 2019                PCI_ENABLE_WAKE(9)
Impressum