device_pm_wait_for_dev(9)
π device_pm_wait_for_dev β the "bestie hold on" of kernel power management π
okay so this is a page from the Kernel API Manual, and ngl the whole vibe here is "chill, wait your turn" β no cap, that's literally the entire function. Let's get into it π«Ά
β¨ NAME β¨
device_pm_wait_for_dev β okay so this one waits for suspend/resume of a device to complete. periodt. that's it, that's the whole job. it's the kernel going "girl sit down, the other one isn't done yet" π
πΈ SYNOPSIS πΈ
int device_pm_wait_for_dev (struct device *subordinate , struct device *dev );
it returns an int, bestie. remember that.
π ARGUMENTS π
subordinateβ the Device that needs to wait fordev. like the younger sibling in the group chat who has to wait for everyone to finish typing before they can respond. main character energy is delayed πdevβ the Device to wait for. this is the one everyone's waiting on, lowkey the diva of the situation π
π¦ SEE ALSO π¦
the kernel file that runs this whole thing lives at ./drivers/base/power/main.c, and honestly? there is so. much. lore. here's the full friend group π
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_prepare(9)dpm_suspend_start(9)dpm_for_each_dev(9)
likeβ¦ iconic. every single one of them. read them all or you're not a real one π€
heads up bestie: this page gives you the signature, the args, and the friend group β it does not spill about return values, error codes, or anything spicy like that. so don't go making stuff up, ok? π
and that's the page!! sourced from ./drivers/base/power, dated October 2026, in the Kernel API Manual β mwah, go forth and wait for dev to finish like a good little subordinate πβ¨π
π¦ 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