device_pm_sleep_init(9)
π device_pm_sleep_init β bestie's guide to the Kernel API Manual π
okay so real talk, we're in the Kernel API Manual today, and the star of the show is device_pm_sleep_init. it's one of those tiny-but-load-bearing functions that the power management girlies could not function without. let's get into it β¨
πΈ NAME πΈ
device_pm_sleep_init β initializes the system suspend-related device fields. that's the whole job. she's a setup girlie, and she does it well π
β¨ SYNOPSIS β¨
void device_pm_sleep_init(struct device *dev);
literally one call. no tricks, no secret extra params, no cap π«Ά
π¦ ARGUMENTS π¦
devβ the device object being initialized. that's it, that's the whole input. hand her astruct device *and she handles the rest π
π SEE ALSO π
bestie there are so many cousins at this family reunion, I'm not even kidding. all of these are (9) kernel API pages, so come through and vibe check them:
pm_hibernate_is_recovering(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_prepare(9)dpm_suspend_start(9)device_pm_wait_for_dev(9)dpm_for_each_dev(9)
and the actual kernel file she lives in:
./drivers/base/power/main.c
like I said. entire friend group. iconic behaviour honestly π
ngl, the original page doesn't list any return value, errors, or flags for this one β it's a void function with a single argument and a single purpose. don't go looking for drama that isn't there, bestie π
πΈ okay that's the whole page, mwah π this cutie came to you from device_pm_sleep_init(9), sourced straight out of ./drivers/base/power, dated October 2026 β go take a nap, you've earned it π«Άβ¨π
π¦ 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