dpm_suspend(9)
π€ dpm_suspend(9) β like, the Kernel API Manual one, bestie
Okay so picture this: it's dpm_suspend, section 9 of the Kernel API Manual, and it's literally the girl who goes around telling every single device to go night-night. Let's get into it β¨
π NAME
dpm_suspend β runs the "suspend" callbacks for all non-sysdev devices. That's it, that's the whole job π
π SYNOPSIS
int dpm_suspend (pm_message_t state );
π«Ά ARGUMENTS
stateβ the PM transition of the system that's being carried out. Like, the whole mood of the suspend, packaged up and passed along πΈ
π₯ SEE ALSO
First up, the source of truth lives in the kernel file ./drivers/base/power/main.c β go read her, she's iconic π
And then the whole friend group, in order, no cap:
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)device_prepare(9)dpm_prepare(9)dpm_suspend_start(9)device_pm_wait_for_dev(9)dpm_for_each_dev(9)
Bestie note: the return type is int β so yeah, she does report back. Check your return value, fr fr π
And that's the page, mwah ππ It's from ./drivers/base/power, dated October 2026 β so like, future girl summer. Go forth and suspend, you've got this! π¦πβ
π¦ 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