device_wakeup_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ device_wakeup_disable(9) β€” the kernel API manual, bestie edition πŸ’€

okay so this is a page from the Kernel API Manual, section 9, and it's about that one function that tells the kernel "girl, this device is NOT a wakeup source anymore, stop treating her like one." we stan a clean exit. ✨


🌸 SYNOPSIS 🌸

void device_wakeup_disable (struct device *dev );

that's it. that's the whole signature. no return value, no drama, just vibes and a void. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device we're handling. that's the one we're about to un-wakeup-ify. she's the main character here 🫢

✨ DESCRIPTION ✨

so here's the glow-up routine, in order, no skips:

  • detach dev's wakeup source object from it (it's not her accessory anymore πŸ’”)
  • unregister that wakeup source object
  • and then destroy it. gone. deleted. no cap πŸ”₯

literally a three-step "we are never ever getting back together" for a wakeup source. slay. πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

everything else living in the kernel file ./drivers/base/power/wakeup.c β€” the whole friend group, fr fr:

iykyk β€” if you're poking at wakeup sources at all, this list is your group chat. go read them. πŸ“

kay that's the whole page, mwah πŸ’– this lil drop came from ./drivers/base/power, dated October 2026, and it's device_wakeup_disable(9) out of the Kernel API Manual β€” go be iconic with your power management, bestie πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from