wakeup_sources_walk_next(9)
β¨ wakeup_sources_walk_next β¨
Okay bestie, welcome to the Kernel API Manual entry for wakeup_sources_walk_next. This is a function from wakeup_sources_walk_next(9) and it's all about navigating the wakeup sources list, one source at a time. No cap, let's get into it. π
πΈ NAME πΈ
wakeup_sources_walk_next β the function that gets you the next wakeup source from the list. Like scrolling to the next slide in your fave presentation, but for kernel wakeup sources. π¦
π SYNOPSIS π
struct wakeup_source * wakeup_sources_walk_next (struct wakeup_source
*ws );
π ARGUMENTS π
wsβ this is the Previous wakeup source object. So you pass in the source you were just looking at, and it hands you the next one. It's giving "keep the convo going" energy. π«Ά
π₯ DESCRIPTION π₯
Okay so real talk for a sec, because this part is important. To be safe, the wakeup sources list needs to be locked by calling wakeup_source_read_lock for this. Like, do not skip this step, bestie. Locking it first is the vibe check this function requires. πβ¨
Fr fr, the description is literally just that safety note: to be safe, the wakeup sources list needs to be locked by calling wakeup_source_read_lock for this. That's the whole thing. Iconic and to the point. π
π SEE ALSO π
This list is long but every single one of these is a real one, so here we go. The kernel file lives at ./drivers/base/power/wakeup.c and it references all of these:
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)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 whole entry, you ate that bestie. π This page came from ./drivers/base/power and the date on it is October 2026. So cute, so official. Stay locked, stay safe, and slay your kernel walk. ππ
π¦ 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