pm_wakeup_pending(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pm_wakeup_pending πŸ’–

okay bestie, welcome to the Kernel API Manual page for pm_wakeup_pending β€” yes that's the real manual section name, we're being ✨official✨ today.


🌸 NAME 🌸

pm_wakeup_pending β€” literally the vibe check that asks: "should this power transition be aborted?" πŸ‘€


✨ SYNOPSIS ✨

bool pm_wakeup_pending (void );

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments. nada. zero. she takes nothing and she gives you a bool. iconic behavior honestly 🫢

πŸ’… DESCRIPTION πŸ’…

so here's the tea, bestie πŸ“ β€” this function compares the current number of registered wakeup events with its preserved value from the past, and returns true if new wakeup events have been registered since that old value was stored. ⭐

it also returns true if the current number of wakeup events being processed is different from zero. so like, two separate reasons to say "yep, something's happening" β€” both of them give you true. πŸ”₯ no cap.

short version: if anything woke up, or anything is currently waking up, you get true. periodt. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

okay this is the friend group, the whole squad, the entire wakeup-source cinematic universe 🌈 β€” and we are not leaving a single one out, iykyk:

Kernel file ./drivers/base/power/wakeup.c πŸ’œ


and that's the whole page, bestie 🧚 go forth and check your wakeup events πŸ’– mwah πŸ’‹

source: ./drivers/base/power Β· version/date: October 2026 Β· from the Kernel API Manual β€” main character energy only, no cap πŸ‘‘βœ¨
πŸ“¦ where this page comes from