wakeup_source_create(9)
π wakeup_source_create π
okay so real talk, bestie β we're deep in the Kernel API Manual today, like deep deep, in the wakeup_source cinematic universe, and this right here is the origin story. no cap. β¨
πΈ NAME πΈ
wakeup_source_create β literally just, like, create a struct wakeup_source object. that's the whole vibe. it's giving "birth of a main character." π
π¦ SYNOPSIS π¦
struct wakeup_source * wakeup_source_create (const char *name );
π ARGUMENTS π
nameβ the name of the new wakeup source. that's it. that's the whole argument. you hand it a name and it hands you a whole struct. iconic behavior honestly π«Ά
β SEE ALSO β
okay so this is the part where i need you to stay with me, because this list is long and it's lowkey a whole friend group. but every single one of them matters, so here we go, no skipping, i promised. π
the kernel file where all this lives is ./drivers/base/power/wakeup.c, and from there we've got:
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_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 i said. a lot of friends. but they're all in the group chat and they all show up for each other. π
ngl bestie, this page is short but it's the doorway to the whole power-management saga. read the SEE ALSO. i'm not asking. π§
and that's the tea! π this lil gem lives under ./drivers/base/power, from the October 2026 drop of the Kernel API Manual β mwah, go forth and create your structs, you absolute icon πβ¨
π¦ 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