1__PCI_ENABLE_WAKE(9) Hardware Interfaces __PCI_ENABLE_WAKE(9)
2
3
4
6 __pci_enable_wake - enable PCI device as wakeup event source
7
9 int __pci_enable_wake(struct pci_dev * dev, pci_power_t state,
10 bool runtime, bool enable);
11
13 dev
14 PCI device affected
15
16 state
17 PCI state from which device will issue wakeup events
18
19 runtime
20 True if the events are to be generated at run time
21
22 enable
23 True to enable event generation; false to disable
24
26 This enables the device as a wakeup event source, or disables it. When
27 such events involves platform-specific hooks, those hooks are called
28 automatically by this routine.
29
30 Devices with legacy power management (no standard PCI PM capabilities)
31 always require such platform hooks.
32
34 0 is returned on success -EINVAL is returned if device is not supposed
35 to wake up the system Error code depending on the platform is returned
36 if both the platform and the native mechanism fail to enable the
37 generation of wake-up events
38
40Kernel Hackers Manual 3.10 June 2019 __PCI_ENABLE_WAKE(9)