device_init_wakeup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

device_init_wakeup β€” Device wakeup initialization ✨

okay so bestie, this is from the Kernel API Manual, and it's literally the function that handles Device wakeup initialization. no cap πŸ’…


✨ SYNOPSIS ✨

int device_init_wakeup (struct device *dev , bool enable );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” Device to handle. 🫢 main character device energy, ngl.
  • enable β€” Whether or not to enable dev as a wakeup device. πŸ‘‘ vibe check for wakeup mode.

πŸ’… DESCRIPTION πŸ’…

By default, most devices should leave wakeup disabled. periodt. The exceptions are devices that everyone expects to be wakeup sources: keyboards, power buttons, possibly network interfaces, etc. βŒ¨οΈπŸ”˜πŸŒ the way that keyboards and power buttons are main character energy 😭

Also, devices that don't generate their own wakeup requests but merely forward requests from one bus to another (like PCI bridges) should have wakeup enabled by default. iykyk πŸ”₯

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/linux/pm_wakeup.h 🧚 the lore is right here
  • struct wakeup_source(9) 🌈
  • devm_device_init_wakeup(9) πŸ’œ

mwah πŸ’‹ β€” this page is from ./include/linux, dated October 2026. slay, bestie ✨

πŸ“¦ where this page comes from