dpm_wait(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ dpm_wait(9) β€” the "bestie hold up a sec" of kernel power management πŸ’€

okay so real talk, this is dpm_wait from the Kernel API Manual, and it is literally the "wait for a PM operation to complete" girlie. lowkey iconic. let's get into it 🫢


✨ NAME ✨

dpm_wait β€” Wait for a PM operation to complete.

like, you're standing at the door of the PM operation like "girl are you done yet πŸ’…" and this is the function that makes you actually wait for the answer. no cap.


🌸 SYNOPSIS 🌸

void dpm_wait (struct device *dev , bool async );

that's it. that's the whole vibe. two arguments, zero returns (void, she gives nothing back, main character energy πŸ‘‘).


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” Device to wait for. the actual device bestie, the one you're waiting on. the subject of the wait. her.
  • async β€” If unset, wait only if the device's power.async_suspend flag is set.
🚨 read that one twice bestie. if async is unset, the wait is conditional β€” it only happens when the device's power.async_suspend flag is set. it's giving "i'll wait but only if the vibes are right". if async is set, that condition doesn't apply (that's what "if unset" means, iykyk πŸ™ˆ). don't come for me, that's just what the page says.

πŸ¦‹ SEE ALSO πŸ¦‹

bestie the reading list is long and honestly she ate. the kernel file lives at ./drivers/base/power/main.c, and then we've got, in this exact order:

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), 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), resume_event(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)

like. forty of them. she's connected, she knows everyone, the whole suspend/resume friend group πŸ’–βœ¨


that's the whole page, bestie β€” go forth and wait responsibly πŸ§šπŸ’œ

🌈 cute sign-off: this iconic little number comes to you from ./drivers/base/power, dated October 2026, and yes, the manual name is dpm_wait(9). mwah πŸ’‹πŸŽ€
πŸ“¦ where this page comes from