wakeup_source_deactivate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ wakeup_source_deactivate(9) β€” the Kernel API Manual glow-up

Okay bestie, so this one lives in the Kernel API Manual and it's literally called wakeup_source_deactivate πŸ’… yes, the name is giving exactly what it is β€” it's the "okay we're done here, you can stop being awake now" call.


✨ NAME ✨

wakeup_source_deactivate β€” mark the given wakeup source as inactive, periodt. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void wakeup_source_deactivate (struct wakeup_source *ws );

That's it. It returns void, so no vibe check on the way out β€” nothing to check, nothing to unwrap, no cap. 🫢


🌸 ARGUMENTS 🌸

  • ws β€” the wakeup source you're handling. That's the whole cast of this show, she's the main character. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So here's the tea, bestie: wakeup_source_deactivate does two things at once and honestly? iconic multitasking. ⭐

  • It updates ws's statistics β€” gotta keep the receipts. πŸ“Š
  • It notifies the PM core that the wakeup source has become inactive β€” like texting the group chat "k I'm done" so nobody's left waiting on you. 😭

And the way it does that notify is very specific, so don't let it slide: it decrements the counter of wakeup events being processed, and it increments the counter of registered wakeup events. Two counters, opposite directions, one function. It's giving balance. 🧚✨

Heads up, bestie β€” the description says exactly those two counter updates, so don't go claiming this does anything else. No extra lore, no hidden side quests. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

The kernel file where all this lives is ./drivers/base/power/wakeup.c, and here's the whole friend group β€” every single one, don't leave anybody on read:


πŸŽ€ ngl that's a lot of cross-references, but that's just how deep the power-management friend group runs. iykyk.

Alright bestie, that's the whole page πŸ’œ β€” sourced from ./drivers/base/power, and this little gem is dated October 2026 (yes, future-dated, she's ahead of her time ✨). Now go forth and deactivate those wakeup sources responsibly, mwah 🫢🌈

πŸ“¦ where this page comes from