wakeup_source_register(9)
π wakeup_source_register(9) π
okay so bestie, welcome to the Kernel API Manual entry for wakeup_source_register(9) β yes that's the whole title, it's giving "I'm the main character of the power-management subsystem" and honestly? it ate. π
β¨ NAME β¨
wakeup_source_register β Create wakeup source and add it to the list.
like literally that's the whole job. it makes one and yeets it onto the list. no cap. π
πΈ SYNOPSIS πΈ
struct wakeup_source * wakeup_source_register (struct device *dev ,
const char *name );
she takes two things and gives you back a struct wakeup_source *. iconic behaviour tbh. π¦
π ARGUMENTS π
devβ the Device this wakeup source is associated with (orNULLif virtual). so like, if your wakeup source doesn't have a device bestie to hang with, you passNULLand she's virtual. lowkey valid. π«Άnameβ the Name of the wakeup source to register. give her a name, she deserves one, she's a whole individual. β
π₯ SEE ALSO π₯
Kernel file ./drivers/base/power/wakeup.c β that's where she lives, that's her home address, go visit her. π‘
and now the entire friend group, no gatekeeping, every single one:
wakeup_source_create(9)wakeup_source_destroy(9)wakeup_source_add(9)wakeup_source_remove(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 look at that list. thirty-nine besties. the whole friend group showed up and they're all slaying in their own little ways. π
ok real talk for one sec: read the actual kernel docs before you go poking at power management, because sleeping/waking is a whole β¨vibeβ¨ and you don't wanna mess it up. π
alright that's the page!! brought to you fresh from ./drivers/base/power, dated October 2026, and she's serving wakeup_source_register(9) realness. mwah ππ¦β¨ππ
π¦ 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