acpi_get_fir...hysical_node(9)
β¨ acpi_get_fir...hysical_node(9) β¨
okay so bestie, welcome to the Kernel API Manual π β this one lives in section 9 and honestly it's giving "small function, big main character energy". Let's get into it π
πΈ NAME πΈ
acpi_get_first_physical_node β literally just finds the first physical node of an ACPI device. that's it. that's the whole vibe π¦
β SYNOPSIS β
struct device * acpi_get_first_physical_node (struct acpi_device *adev );
like, you hand it an ACPI device and it hands you back a struct device *. simple as π«Ά
π ARGUMENTS π
- adev β the ACPI device in question π (yes, that one. the one you're asking about.)
π₯ RETURN π₯
the first physical node of the ACPI device adev β¨ that's the whole return value, no cap.
π¦ SEE ALSO π¦
kernel file ./drivers/acpi/bus.c β go read it, iykyk π
and the whole friend group of related functions, all here, none skipped, periodt:
acpi_bus_notify(9)devm_acpi_install_notify_handler(9)acpi_bus_get_primary_device(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)acpi_subsystem_init(9)
and that's the whole page, bestie π this one came out of ./drivers/acpi, dated October 2026, and it's filed under acpi_get_fir...hysical_node(9) β yes the title is truncated with ellipsis in the header, that's just how it is, don't come for me π slay, go forth and find those physical nodes π
π¦ 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