acpi_subsys_suspend(9)
β¨ acpi_subsys_suspend(9) β¨
okay so real talk, bestie β you're reading a page from the Kernel API Manual, and it's all about acpi_subsys_suspend. yes that's a mouthful, no i will not be pronouncing it out loud π
πΈ NAME πΈ
acpi_subsys_suspend β literally just runs the device driver's suspend callback. that's the whole vibe. no cap. π«Ά
π SYNOPSIS π
int acpi_subsys_suspend (struct device *dev );
π¦ ARGUMENTS π¦
devβ the device you're handling. that's it, that's the arg. give it a device, she'll do her thing π
β DESCRIPTION β
so here's the tea β β this function follows PCI and resumes devices from runtime suspend before running their system suspend callbacks.
BUT (and this is the important but, don't skip it π) there's an exception, and there are two conditions that both have to hold for it:
- the driver can cope with runtime-suspended devices during system suspend, and
- there are no ACPI-specific reasons for resuming them.
if both of those are true? then she doesn't do the resume-first thing. if either one fails β or honestly if you're not sure β resume happens first. periodt. π₯
π SEE ALSO π
the whole squad lives in the kernel file ./drivers/acpi/device_pm.c and honestly, it's giving extended family reunion. here's everybody:
acpi_power_state_string(9)acpi_device_get_power(9)acpi_device_set_power(9)acpi_device_fix_up_power(9)acpi_device_fix_up_power_extended(9)acpi_device_fix_up_power_children(9)acpi_dev_power_up_children_with_adr(9)acpi_dev_power_state_for_wake(9)acpi_add_pm_notifier(9)acpi_remove_pm_notifier(9)acpi_dev_pm_get_state(9)acpi_pm_device_sleep_state(9)acpi_pm_notify_work_func(9)acpi_device_wakeup_enable(9)acpi_device_wakeup_disable(9)acpi_pm_set_device_wakeup(9)acpi_dev_pm_low_power(9)acpi_dev_pm_full_power(9)acpi_dev_suspend(9)acpi_dev_resume(9)acpi_subsys_runtime_suspend(9)acpi_subsys_runtime_resume(9)acpi_subsys_prepare(9)acpi_subsys_complete(9)acpi_subsys_suspend_late(9)acpi_subsys_suspend_noirq(9)acpi_subsys_resume_noirq(9)acpi_subsys_resume_early(9)acpi_subsys_resume(9)acpi_subsys_freeze(9)acpi_subsys_restore_early(9)acpi_subsys_poweroff(9)acpi_subsys_poweroff_late(9)acpi_subsys_poweroff_noirq(9)acpi_dev_pm_detach(9)acpi_dev_pm_attach(9)acpi_storage_d3(9)acpi_dev_state_d0(9)
like i said. reunion. iconic behavior, truly π
and that's the whole page, bestie!! π this gem comes to you from ./drivers/acpi, dated October 2026, and it goes by acpi_subsys_suspend(9). go take a nap now, 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