device_wakeup_detach(9)
π device_wakeup_detach(9) β the kernel API manual, bestie edition π
okay so real talk, this page lives in the Kernel API Manual family (that's the manual name, yes, and yes it's giving "official documentation but make it make sense" π ), and it's literally about severing the link between a device and its wakeup source object. nothing dramatic, just a clean breakup β¨
β¨ NAME β¨
device_wakeup_detach β detach a device's wakeup source object from it, periodt π
πΈ SYNOPSIS πΈ
struct wakeup_source * device_wakeup_detach (struct device *dev );
π¦ DESCRIPTION π¦
so like. after it returns, dev will not be treated as a wakeup device any more. that's the whole vibe check. one moment it's a wakeup device, next moment it's just... a device. no cap π«Ά
π ARGUMENTS π
devβ the device you're detaching the wakeup source object from. that's the one. she's the main character of this call π
π₯ SEE ALSO π₯
the kernel file ./drivers/base/power/wakeup.c is where all the lore lives, and honestly the friend group here is enormous β every single one of these is a real function, iykyk:
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_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)
bestie, this is the detach one β if you actually wanted to attach, that's device_wakeup_attach(9) up there, don't come for me π
and that's the page fr fr π it shipped from ./drivers/base/power, dated October 2026 β go off, power management directory, you ate πβ¨
π¦ 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