wakeup_source_destroy(9)
π wakeup_source_destroy π (that's the wakeup_source_destroy(9) page, from the Kernel API Manual, bestie)
okay so picture this: you made a struct wakeup_source, and now you gotta let it go. this page is literally just the "break up era" function. nothing more, nothing less. π¦
β¨ SYNOPSIS β¨
void wakeup_source_destroy (struct wakeup_source *ws );
yes that's the whole signature. no return value, no drama (well, okay, it returns void, which is its own kind of drama). π
π ARGUMENTS π
wsβ the wakeup source you're about to destroy. that's it. that's the argument. say bye π«Ά
πΈ DESCRIPTION πΈ
so, real talk: you use this only for wakeup source objects that were created with wakeup_source_create. like, that's the whole rule. if you made it with wakeup_source_create, then wakeup_source_destroy is your girl. match made in heaven, periodt. β¨
not me stressing the "only" β this is a pairing situation, bestie. created withwakeup_source_createβ destroyed withwakeup_source_destroy. don't mix and match, i'm begging π
π₯ SEE ALSO π₯
all the sibling functions and neighbors you might also be looking for. the whole friend group, fr fr π
- kernel file
./drivers/base/power/wakeup.clives here, and these live with it: wakeup_source_create(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_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)
okay that's the page!! go free your wakeup sources bestie, they earned it π§π
sign-off szn: this lil beauty comes from ./drivers/base/power, dated October 2026 β and honestly? iconic of it. ππΈ
π¦ 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