resume_event(9)
π€ resume_event(9) β the kernel API manual, bestie edition β¨
Okay so real talk, we're deep in the kernel's power-management era (Kernel API Manual, section 9, if anyone's keeping score π) and today's main character is resume_event. It is literally the "and now we wake up" of the suspend/resume saga. Sit down, grab a strawberry drink π, and let's get into it.
β¨ NAME β¨
resume_event β returns a "resume" message for whatever "suspend" sleep state you hand it. That's the whole vibe. Sleepy in, wakey out. π¦
πΈ SYNOPSIS πΈ
pm_message_t resume_event (pm_message_t sleep_state );
That's it. One arg in, one pm_message_t out. Clean, iconic, no notes. π
π ARGUMENTS π
sleep_stateβ a PM message that represents a sleep state. Like, the suspend side of the story. Hand it over and let the function do its thing. π
π DESCRIPTION π
Okay so here's the tea β: resume_event returns a PM message that represents the resume event corresponding to the given sleep_state. You bring the sleep state, it brings the matching resume message. That's the whole function, and honestly? It ate. No cap. π₯
No side quests, no hidden behaviour, no plot twists β the description is exactly one (1) sentence of truth and we respect her for it. π«Ά
π¦ SEE ALSO π¦
All the friends in the group chat π¬ β like, the entire power-management extended universe. Also, the kernel file lives at:
./drivers/base/power/main.c
pm_hibernate_is_recovering(9)device_pm_sleep_init(9)device_pm_lock(9)device_pm_unlock(9)device_pm_add(9)device_pm_remove(9)device_pm_move_before(9)device_pm_move_after(9)device_pm_move_last(9)dpm_wait(9)pm_op(9)pm_late_early_op(9)pm_noirq_op(9)dpm_watchdog_handler(9)dpm_watchdog_set(9)dpm_watchdog_clear(9)dev_pm_skip_resume(9)device_resume_noirq(9)dpm_resume_noirq(9)device_resume_early(9)dpm_resume_early(9)dpm_resume_start(9)device_resume(9)dpm_resume(9)device_complete(9)dpm_complete(9)dpm_resume_end(9)device_suspend_noirq(9)dpm_suspend_noirq(9)device_suspend_late(9)dpm_suspend_late(9)dpm_suspend_end(9)legacy_suspend(9)device_suspend(9)dpm_suspend(9)device_prepare(9)dpm_prepare(9)dpm_suspend_start(9)device_pm_wait_for_dev(9)dpm_for_each_dev(9)
Yeah, that's forty of them. Not me counting. Okay maybe me counting. π Anyway β read them, love them, link against them. iykyk. π
π the cute sign-off π
So this whole page comes to you from the source tree spot ./drivers/base/power, dated October 2026, and it's resume_event(9) forever and always. Go forth and resume, bestie β you're so valid and your sleep state is matching. βπ§π
π¦ 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