pci_enable_wake(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so this is pci_enable_wake(9) from the Kernel API Manual β€” the function that changes wakeup settings for a PCI device ✨ bestie it literally just flips the "can this device wake me up" switch, no cap.


✨ SYNOPSIS ✨

int pci_enable_wake (struct pci_dev *pci_dev , pci_power_t state , bool
enable );

πŸŽ€ ARGUMENTS πŸŽ€

  • pci_dev β€” the target device πŸ’– like, the actual piece of hardware we're talking about here.
  • state β€” the PCI state from which the device will issue wakeup events 🌸 so, which power state it's waking up from.
  • enable β€” whether or not to enable event generation ⭐ on or off, yes or no, the whole vibe check.

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• β€” if enable is set, the function checks device_may_wakeup for the device before calling __pci_enable_wake for it. that's it, that's the whole move. it's giving gatekeeper energy and honestly? correct of it πŸ’…

no cap though, that conditional is the entire behaviour described here β€” enable on = check first, then call. don't go adding lore that isn't in the source 🫢

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/pci/pci.c β€” and like, an absolutely iconic amount of friends, bestie. we're talking main-character-adjacent at minimum, so buckle in πŸŽ€


and that's the whole page bestie πŸ§šπŸ’œ source is ./drivers/pci, dated October 2026, living down there in the footer next to pci_enable_wake(9) β€” slay, go set some wakeup settings πŸ’…β­

πŸ“¦ where this page comes from