wakeup_sources_read_unlock(9)
π wakeup_sources_read_unlock β like, the UNLOCK half of the wakeup source list saga π«Ά
okay so bestie, welcome to the kernel API manual, section 9 (wakeup_sources_read_unlock(9) if we're being formal π
). this is the glowy little counterpart to the lock β the "k we're done here, you can go now" of the wakeup source list. no cap.
β¨ NAME β¨
wakeup_sources_read_unlock β unlock the wakeup source list. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
void wakeup_sources_read_unlock (int idx );
it returns void, meaning it literally gives you nothing back, and honestly? iconic of it. it's giving "I did my job, I'm not looking for applause." π
π ARGUMENTS π
idxβ this is the return value from the correspondingwakeup_sources_read_lock. so like, you hold onto whatever the lock handed you and you pass it right back here. matching set bestie, they're literally a pair. πβ‘οΈπ
β οΈ real talk:idxis specifically the value that came back fromwakeup_sources_read_lock. don't get cute and invent your own number, that's not the assignment.
π¦ SEE ALSO π¦
the whole friend group, in order, no one left out (i would never π):
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_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)
also, for the record, the kernel file it lives in is ./drivers/base/power/wakeup.c β that's the address, that's the whole committee meeting spot. π
and that's the page!! stay hydrated, unlock your locks, and remember: your idx came from the lock, so give it back nicely. π
compiled with love from ./drivers/base/power, October 2026 edition β mwah, see u in the next manpage bestie π§β¨
π¦ 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