acpi_dev_pm_detach(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so, welcome to the acpi_dev_pm_detach(9) page in the Kernel API Manual β€” this is the function that removes ACPI power management from the device. literally its whole job. πŸ’…

✨ SYNOPSIS ✨

void acpi_dev_pm_detach (struct device *dev , bool power_off );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device you’re taking care of. πŸ’–
  • power_off β€” whether or not to try to remove power from the device. πŸ”Œ

πŸ’… DESCRIPTION πŸ’…

okay bestie, here’s the vibe: this removes the device from the general ACPI PM domain and removes its wakeup notifier. ✨

if power_off is set, it also tries to remove power from the device β€” but only if possible. no cap, that’s the whole extra step. 🫢

⚠️ callers must ensure proper synchronization of this function with power management callbacks. that part is on you, bestie β€” do not skip the synchronization. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/acpi/device_pm.c β€” then the whole bestie squad: 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(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_attach(9), acpi_storage_d3(9), acpi_dev_state_d0(9).


xoxo, your kernel bestie πŸ’… β€” source/version slot: ./drivers/acpi; date: October 2026; manual name: acpi_dev_pm_detach(9). πŸŽ€

πŸ“¦ where this page comes from