wakeup_source_activate(9)
π€ wakeup_source_activate(9) β the "bestie is awake now" page
okay so this is a page from the Kernel API Manual, and honestly? It's a little one but it's a baddie. It's about telling the kernel "hey, this thing right here? it's awake, it's doing stuff, clock it." β¨
πΈ NAME
wakeup_source_activate β Mark given wakeup source as active.
Like, literally that. You're stamping the vibe check as active. π
π SYNOPSIS
void wakeup_source_activate (struct wakeup_source *ws );
Returns nothing (void), takes one thing. Simple. Elegant. Iconic.
π¦ ARGUMENTS
wsβ Wakeup source to handle. That's the one you're activating, bestie. She's the main character here. π
π₯ DESCRIPTION
So here's what happens: you call this and it updates the ws' statistics β yes, she keeps receipts π β and, if ws has just been activated, it notifies the PM core of the event by incrementing the counter of the wakeup events being processed. β¨
That's the whole thing. It's short but it's doing real work. No cap.
tiny heads up: the notification part only fires if ws has just been activated. So it's not like "every single time, always." The counter bump is conditional, and now you know. π«Ά
π SEE ALSO
Grab a snack, this is the whole group chat π β it's a lot of friends:
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_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_wakeup_pending(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)
Also! Kernel file: ./drivers/base/power/wakeup.c β that's where she lives. Go say hi. π§
π sign-off
This lil masterpiece comes from ./drivers/base/power, dated October 2026. Read it, love it, cite it in your patch notes. mwah π π
π¦ 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