wakeup_source_not_usable(9)
π wakeup_source_not_usable(9) β the kernel API manual, bestie edition π
okay so we're in the Kernel API Manual, section 9, and today's main character is wakeup_source_not_usable. yes the name is a little ominous. no she's not mean, she's just doing a vibe check on your wakeup source, that's literally it. π¦
β¨ NAME β¨
wakeup_source_not_usable β validate the given wakeup source.
like, does this wakeup source pass inspection or not. that's the whole job. periodt. π
πΈ SYNOPSIS πΈ
bool wakeup_source_not_usable (struct wakeup_source *ws );
she returns a bool and takes exactly one thing: a struct wakeup_source *ws. keep that signature exactly as-is, no cap, she's picky about her types. β¨
π§ ARGUMENTS π§
wsβ the wakeup source to be validated. hand her the pointer and she'll tell you what's up. π«Ά
π SEE ALSO π
bestie the wakeup-source universe is huge and she is connected to literally everyone, so buckle up. this is the whole friend group, in order, no skips:
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_wakeup_disable(9)device_set_wakeup_capable(9)device_set_wakeup_enable(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)
and where does all this lore live? kernel file ./drivers/base/power/wakeup.c, obviously. that's the source of truth, iykyk. π₯
ngl the pm_wakep_autosleep_enabled(9) one is spelled exactly like that in the original β i'm not fixing it, i'm just reporting it. π copy it exactly if you're typing it into anything.
okay that's the whole page, short and iconic, she ate and left no crumbs π the page lives under ./drivers/base/power and the version stamp says October 2026 β so like, future-core of her π bye bestie, go validate some wakeup sources π§ββοΈβ
π¦ 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