legacy_suspend(9)
π legacy_suspend(9) β like, the whole vibe
okay so this page lives in the Kernel API Manual, and it's all about legacy_suspend β the function that runs a legacy (bus or class) suspend callback for a device. bestie, it's giving "old school but still on the guest list" β¨
β¨ NAME β¨
legacy_suspend β execute a legacy (bus or class) suspend callback for device.
π SYNOPSIS π
int legacy_suspend (struct device *dev , pm_message_t state , int
(*cb)(struct device *dev, pm_message_t state) , const char *info );
πΈ ARGUMENTS πΈ
devβ Device to suspend. the main character of this whole operation πstateβ PM transition of the system being carried out. aka what kind of nap are we putting the system into π΄cbβ Suspend callback to execute. this is the actual function that gets like, run πββοΈinfoβ string description of caller. for the receipts, iykyk π§Ύ
π¦ SEE ALSO π¦
so like, the kernel file ./drivers/base/power/main.c is where it's at, and here's the whole friend group β no cap, every single one of them π«Ά
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)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)
ngl the resume girlies and the suspend girlies are all here β read them together, it's giving full pm lifecycle π
k bye ily, this page came from ./drivers/base/power, October 2026 edition β go read the source, 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