acpi_scan_drop_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

Okay so bestie, welcome to acpi_scan_drop_device(9) from the Kernel API Manual β€” we're dropping an ACPI device object, and it's giving very specific kernel cleanup energy ✨

acpi_scan_drop_device β€” drop an ACPI device object.


✨ SYNOPSIS ✨

void acpi_scan_drop_device (acpi_handle handle , void *context );

πŸŽ€ ARGUMENTS πŸŽ€

  • handle β€” handle of an ACPI namespace node, and bestie, it is literally not used here πŸ™ˆ
  • context β€” address of the ACPI device object to drop πŸ’–

🌸 DESCRIPTION 🌸

So this function gets invoked by acpi_ns_delete_node during the removal of the ACPI namespace node that the device object pointed to by context is attached to. Very β€œright place, right time” of it πŸ‘‘

The unregistration is carried out asynchronously β€” yes, async slay β€” specifically to avoid running acpi_device_del under ACPICA's namespace mutex. And the list is used to make sure the ordering stays correct: the device objects must be unregistered in the same order in which the corresponding namespace nodes are deleted. Order matters, periodt 🫢

🌈 SEE ALSO 🌈

Kernel file: ./drivers/acpi/scan.c β€” that's the spot πŸ’…

Also on the SEE ALSO list, in all their referenced glory:


That's the whole page, bestie! Source/version: ./drivers/acpi; date: October 2026; title energy: acpi_scan_drop_device(9). Stay slay, stay ordered, and may your namespace nodes delete cleanly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from