dpm_complete(9)
π dpm_complete β from the Kernel API Manual, bestie π
okay so like, welcome to the Kernel API Manual (section 9, we love a man-page moment), and today's main character is dpm_complete. she's short, she's sweet, she's lowkey doing a lot of work behind the scenes. let's get into it β¨
πΈ NAME πΈ
dpm_complete β Complete a PM transition for all non-sysdev devices.
like, all of them. every single non-sysdev device. she's thorough, she's that girl π
π¦ SYNOPSIS π¦
void dpm_complete (pm_message_t state );
yup that's the whole thing. void return, one argument, no notes. iconic behavior honestly π
π ARGUMENTS π
stateβ PM transition of the system being carried out. that's the vibe of the whole power-management moment you're in rn, she needs to know which one, k? π«Ά
π DESCRIPTION π
okay so here's the tea: dpm_complete executes the ->complete callbacks for all devices whose PM status is not DPM_ON.
and why does that matter, you ask? because doing it this way (only the ones not already DPM_ON) allows new devices to be registered while this is happening. so the system can grow mid-transition. slay, honestly β¨
π no cap, that parenthetical is load-bearing β it's the whole reason for the status check. don't skip it.
π§ SEE ALSO π§
like a group chat, but for kernel symbols. these are all the friends in the ./drivers/base/power/main.c orbit β go say hi π
Kernel file ./drivers/base/power/main.cpm_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_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)
fr fr that's the whole roster, no cap, didn't skip a single one ππ
and that's the page!! brought to you by ./drivers/base/power, dated October 2026, and obviously the icon herself, dpm_complete(9). go forth and complete those PM transitions, 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