wakeup_sources_read_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… wakeup_sources_read_lock β€” Kernel API Manual, bestie edition πŸŽ€

okay so hi, you're looking at the page for wakeup_sources_read_lock from the Kernel API Manual, and honestly? it's a short one. tiny icon. small but mighty. let's get into it πŸ¦‹


✨ NAME ✨

wakeup_sources_read_lock β€” lock the wakeup source list for reading, bestie. that's the whole vibe. πŸ’…


✨ SYNOPSIS ✨

int wakeup_sources_read_lock (void );

literally that's it. no notes. πŸ‘‘


✨ ARGUMENTS ✨

  • void β€” no arguments. none. zero. the void is empty, it's giving minimalist main character energy 🫢

✨ DESCRIPTION ✨

so what it actually does: it returns an index of srcu lock for struct wakeup_srcu. that's the deliverable. an index. a little number. a golden ticket 🎫✨

and the important part β€” this index must be passed to the matching wakeup_sources_read_unlock. like, this is a matching set, okay? you take the index from here, you hand it to the unlock. they're a duo. a package deal. fr fr do not lose the index and do not unlock with somebody else's index, that's not the vibe 😭


✨ SEE ALSO ✨

the kernel file lives at ./drivers/base/power/wakeup.c, and here's the whole friend group 🫢:

  • 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_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)

that's the whole page, no cap πŸ’– this one's coming at you from ./drivers/base/power, dated October 2026 β€” mwah, go lock your lists responsibly, ily, bye 🧚⭐

πŸ“¦ where this page comes from