bpf_wakeup_sources_get_head(9)
π bpf_wakeup_sources_get_head β ok bestie, let's talk wakeup sources
So this is a page from the Kernel API Manual (section 9, the kernel-API girlies π§) and it's about bpf_wakeup_sources_get_head. Yes, that's a mouthful. No, we're not abbreviating it. It's iconic, let her have her full name β¨
πΈ NAME πΈ
bpf_wakeup_sources_get_head β literally just gets you the head of the wakeup sources list. That's it. That's the whole job. She's a one-trick pony and she ate π
β SYNOPSIS β
__bpf_kfunc void * bpf_wakeup_sources_get_head (void );
Look at her. No arguments, takes no notes, asks no questions. Returns a void * and it's a __bpf_kfunc, so she lives in BPF-kfunc land π¦
π ARGUMENTS π
voidβ no arguments, bestie. Nothing. Zero. The void is voiding. She needs nothing from you and honestly? Respect π
π₯ RETURN π₯
She hands you back the head of the wakeup sources list β as a void *. That's the whole return value. Don't overthink it, she's not gonna overthink it either π
π SEE ALSO π
Okay this is the part where the friend group gets huge, so buckle up π«Ά
The kernel file this lives near is ./drivers/base/power/wakeup.c, and here's the entire squad:
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_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)
Like I said. Big friend group. Read the whole roster, no skipping, iykyk ππ
ngl bestie, if you're pairing this withbpf_wakeup_sources_read_lock(9)andbpf_wakeup_sources_read_unlock(9), that's the correct vibe β go read those pages too π§
That's the whole page, babe β¨ β brought to you by ./drivers/base/power, dated October 2026, and she's filed right back under bpf_wakeup_sources_get_head(9) where she belongs π π
π¦ 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