device_pm_lock(9)
π device_pm_lock β from the Kernel API Manual π
okay bestie, welcome to the Kernel API Manual, page device_pm_lock β yes the whole manual name is in the title, we're being β¨officialβ¨ today.
πΈ NAME πΈ
device_pm_lock β literally just locks the list of active devices that the PM core uses. that's it. that's the whole job. lowkey iconic for how simple it is π
β¨ SYNOPSIS β¨
void device_pm_lock (void );
likeβ¦ she takes nothing, she returns nothing, she just locks. main character energy, no cap π«Ά
π ARGUMENTS π
voidβ no arguments, bestie. zero. none. the void is empty and honestly? we respect it π
π¦ SEE ALSO π¦
okay so this is the part where the manpage goes absolutely feral and lists everything in Kernel file ./drivers/base/power/main.c. buckle up, it's a long one, but I'm not skipping a single one of these β every single reference stays, fr fr π
pm_hibernate_is_recovering(9)device_pm_sleep_init(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)
forty of them. forty!! and they're all living in ./drivers/base/power β go read them, iykyk ππ₯
π tiny reminder bestie:device_pm_locklocks.device_pm_unlock(9)unlocks. don't forget to unlock, or things get β¨stuckβ¨ and nobody wants that π
π that's the whole page!! source/version is ./drivers/base/power and the date on this beauty is October 2026 β so yes, she's from the future, and she ate. periodt. ππ
π
π¦ 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