pm_wakeup_pending(9)
π 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 abool. 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 π
wakeup_source_create(9)wakeup_source_destroy(9)wakeup_source_add(9)wakeup_source_remove(9)wakeup_source_register(9)wakeup_source_unregister(9)wakeup_sources_read_lock(9)wakeup_sources_read_unlock(9)wakeup_sources_walk_start(9)wakeup_sources_walk_next(9)device_wakeup_attach(9)device_wakeup_enable(9)device_wakeup_attach_irq(9)device_wakeup_detach_irq(9)device_wakeup_arm_wake_irqs(9)device_wakeup_disarm_wake_irqs(9)device_wakeup_detach(9)device_wakeup_disable(9)device_set_wakeup_capable(9)device_set_wakeup_enable(9)wakeup_source_not_usable(9)wakeup_source_activate(9)wakeup_source_report_event(9)__pm_stay_awake(9)pm_stay_awake(9)wakeup_source_deactivate(9)__pm_relax(9)pm_relax(9)pm_wakeup_timer_fn(9)pm_wakeup_ws_event(9)pm_wakeup_dev_event(9)pm_get_wakeup_count(9)pm_save_wakeup_count(9)pm_wakep_autosleep_enabled(9)print_wakeup_source_stats(9)wakeup_sources_stats_seq_show(9)bpf_wakeup_sources_read_lock(9)bpf_wakeup_sources_read_unlock(9)bpf_wakeup_sources_get_head(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms