acpi_subsystem_init(9)
π acpi_subsystem_init β a kernel API manual moment
Okay bestie, gather round, because we're looking at acpi_subsystem_init(9) from the Kernel API Manual and honestly? It's a little one, but it's a load-bearing little one. Let's get into it π«Ά
β¨ NAME β¨
acpi_subsystem_init β the function that finalizes the early initialization of ACPI. That's it, that's the whole job, and it slays at it π
πΈ SYNOPSIS πΈ
void acpi_subsystem_init (void );
Yep. That's the whole signature. No cap.
π ARGUMENTS π
voidβ no arguments. Nothing. Zero. She takes nothing and she gives everything π
π¦ DESCRIPTION π¦
So what does she actually do? She switches the platform over to ACPI mode β if possible. That "if possible" is doing a lot of work, so keep it in your back pocket π
Now here's the vibe check that matters: doing this too early is generally unsafe. Like, genuinely, not in a cute way. But at the same time β and this is the plot twist β it needs to be done before all the things that really depend on ACPI. So you're threading a needle here πͺ‘
The right spot appears to be before finalizing the EFI initialization. That's the sweet spot, the main character placement, the moment where everything lines up β¨
Not me stressing the timing on this one β early = unsafe, late = everything downstream that depends on ACPI is grumpy. Before finalizing EFI init. That's the assignment π
π₯ SEE ALSO π₯
Kernel file ./drivers/acpi/bus.c and the whole friend group:
acpi_bus_notify(9)devm_acpi_install_notify_handler(9)acpi_bus_get_primary_device(9)acpi_get_first_physical_node(9)acpi_device_is_first_physical_node(9)acpi_of_match_device(9)acpi_set_modalias(9)acpi_match_acpi_device(9)acpi_match_device(9)acpi_bus_find_device_by_name(9)acpi_early_init(9)
π sign-off π
That's the whole page, bestie β brought to you from ./drivers/acpi, dated October 2026, in the Kernel API Manual π Go forth and initialize your ACPI subsystem at exactly the right moment, not a second earlier. 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