dpm_prepare(9)
π dpm_prepare(9) β the Kernel API Manual glow-up π
okay bestie, welcome to the dpm_prepare(9) page in the Kernel API Manual β¨ this is the one that gets all your non-sysdev devices ready for a system PM transition. yes, all of them. no cap.
β¨ NAME β¨
dpm_prepare β prepare all non-sysdev devices for a system PM transition. π¦
π«Ά SYNOPSIS π«Ά
int dpm_prepare (pm_message_t state );
that's it. one argument. one int coming back at you. iconic behavior honestly π
πΈ ARGUMENTS πΈ
stateβ the PM transition of the system being carried out. like, which flavor of power management era we're in rn. keep it close, you'll need it π₯
π DESCRIPTION π
so here's the vibe: dpm_prepare executes the ->prepare callback(s) for all devices. that's the whole assignment bestie, and it ate. π
every device gets its ->prepare moment. the way that this is literally the prep step before everything else goes down... main character energy fr fr π
π SEE ALSO π
okay this list is LONG and I'm obsessed, buckle up bestie, we're going through all of it π
- Kernel file
./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)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_suspend_start(9)device_pm_wait_for_dev(9)dpm_for_each_dev(9)
like I said. the whole squad. go read them all, iykyk π
ngl if you got this far you deserve a little treat, go hydrate and then go read device_prepare(9) because they're basically siblings π§
k bye bestie!! this page lives in ./drivers/base/power and it's stamped October 2026 β screenshot it, frame it, put it on your wall ππ
β¨
π¦ 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