pm_wakeup_ws_event(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay so this is pm_wakeup_ws_event(9), straight out of the Kernel API Manual β€” and bestie, it’s literally the function that notifies the PM core of a wakeup event. ✨ pm_wakeup_ws_event β€” notify the PM core of a wakeup event. No cap. πŸ’…


✨ SYNOPSIS ✨

void pm_wakeup_ws_event (struct wakeup_source *ws , unsigned int msec , bool hard );

πŸŽ€ ARGUMENTS πŸŽ€

  • ws β€” the wakeup source object associated with the event source. πŸ¦‹
  • msec β€” anticipated event processing time, in milliseconds. ⏱️
  • hard β€” if it’s set, it aborts suspends in progress and wakes up from suspend-to-idle. πŸ’₯

🌸 DESCRIPTION 🌸

Okay so picture this: you’re notifying the PM core of a wakeup event whose source is ws, and that event is gonna take approximately msec milliseconds to be processed by the kernel. 🫢

If ws is not active, it activates it. If msec is nonzero, it sets up the ws’ timer to execute pm_wakeup_timer_fn in the future. ⭐

And yes bestie, it is safe to call this function from interrupt context. πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/base/power/wakeup.c and the whole crew:


Catch you later, bestie β€” source/version: ./drivers/base/power, date: October 2026. πŸ’…βœ¨

πŸ“¦ where this page comes from