device_wakeup_disable(9)
π€ device_wakeup_disable(9) β the kernel API manual, bestie edition π€
okay so this is a page from the Kernel API Manual, section 9, and it's about that one function that tells the kernel "girl, this device is NOT a wakeup source anymore, stop treating her like one." we stan a clean exit. β¨
πΈ SYNOPSIS πΈ
void device_wakeup_disable (struct device *dev );
that's it. that's the whole signature. no return value, no drama, just vibes and a void. π
π ARGUMENTS π
devβ the device we're handling. that's the one we're about to un-wakeup-ify. she's the main character here π«Ά
β¨ DESCRIPTION β¨
so here's the glow-up routine, in order, no skips:
- detach
dev's wakeup source object from it (it's not her accessory anymore π) - unregister that wakeup source object
- and then destroy it. gone. deleted. no cap π₯
literally a three-step "we are never ever getting back together" for a wakeup source. slay. π
π¦ SEE ALSO π¦
everything else living in the kernel file ./drivers/base/power/wakeup.c β the whole friend group, fr fr:
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_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)
iykyk β if you're poking at wakeup sources at all, this list is your group chat. go read them. π
kay that's the whole page, mwah π this lil drop came from ./drivers/base/power, dated October 2026, and it's device_wakeup_disable(9) out of the Kernel API Manual β go be iconic with your power management, bestie ππ
π¦ 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