1PCI_SET_POWER_STATE(9) Hardware Interfaces PCI_SET_POWER_STATE(9)
2
3
4
6 pci_set_power_state - Set the power state of a PCI device
7
9 int pci_set_power_state(struct pci_dev * dev, pci_power_t state);
10
12 dev
13 PCI device to handle.
14
15 state
16 PCI power state (D0, D1, D2, D3hot) to put the device into.
17
19 Transition a device to a new power state, using the platform firmware
20 and/or the device's PCI PM registers.
21
23 -EINVAL if the requested state is invalid. -EIO if device does not
24 support PCI PM or its PM capabilities register has a wrong version, or
25 device doesn't support the requested state. 0 if device already is in
26 the requested state. 0 if device's power state has been successfully
27 changed.
28
30Kernel Hackers Manual 3.10 June 2019 PCI_SET_POWER_STATE(9)