device_pm_add(9)
π device_pm_add β the "add me to the PM squad" moment π
okay so real talk, bestie, this is a page from the Kernel API Manual (device_pm_add(9)) and it's short but it's important. Let me put you on. π«Ά
β¨ NAME β¨
device_pm_add β literally adds a device to the PM core's list of active devices. That's it. That's the whole job. She's a one-task queen and she ate. π
πΈ SYNOPSIS πΈ
void device_pm_add (struct device *dev );
not me giving you the exact signature so you can't mess it up π
returns void, so no worrying about return values, she gives you nothing back and honestly? iconic.
π¦ ARGUMENTS π¦
devβ the device you're adding to the list. like, hand her over, she's going on the list now. π
π SEE ALSO π
the whole friend group, fr fr β go read these next, they're all in the 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_remove(9)β the reverse slay, we love a symmetrical icondevice_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)
like I said. the whole friend group. no cap, that's forty of them. go be social. ππ
ngl bestie, that's genuinely the entire page β she's tiny, she's specific, and she knows exactly what she's about. no hidden lore, no tricks. just vibes and a list insertion. π§
and that's a wrap!! π this cutie lives over in ./drivers/base/power, version-dated October 2026, and the manual entry is device_pm_add(9) β drink water, read your kernel docs, mwah ππ
π¦ 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