wakeup_source_unregister(9)
π wakeup_source_unregister(9)
okay so we're in the Kernel API Manual bestie, and this page is literally about β¨cleanupβ¨ β the moment a wakeup source gets yeeted off the list and then destroyed. main character energy is removal, and honestly? iconic.
πΈ NAME
wakeup_source_unregister β remove a wakeup source from the list, and then remove it. periodt.
(no cap, that's the whole name description: "Remove wakeup source from the list and remove it." Two steps, both slay. π)
β¨ SYNOPSIS
void wakeup_source_unregister (struct wakeup_source *ws );
it's a void function, so don't go looking for a return value bestie, there isn't one π
π ARGUMENTS
wsβ the wakeup source object you want to unregister. that's it. that's the whole arg. hand it over and let it go π¦
π SEE ALSO
okay so the whole friend group is here, and yes the original lists this exact kernel file plus every single one of these β no skipping, i promised:
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_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_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)
like, that's the entire roster π₯ go read them, i'll wait π
lowkey a reminder from your girl: this page only says what the function does β remove from the list, then remove it. anything beyond that is between you and ./drivers/base/power/wakeup.c π«Ά
and that's the page! π brought to you by ./drivers/base/power, dated October 2026, and filed under wakeup_source_unregister(9) β mwah, bye bestie, go unregister responsibly πβ¨πΈ
π¦ 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