acpi_device_...hysical_node(9)
π NAME π
acpi_device_is_first_physical_node β bestie, it tells you if this dev is THE first physical node π
β¨ SYNOPSIS β¨
bool acpi_device_is_first_physical_node(struct acpi_device *adev,
const struct device *dev);
π ARGUMENTS π
adevβ the ACPI companion device π (yes, the one doing the accompanying)devβ the physical device you're side-eyeing and checking π§
π¦ DESCRIPTION π¦
Okay so picture this: the function checks whether the dev you handed it is the first physical device attached to the ACPI companion device. Like, is it the main character of this companion situation or not π
And why do we even care? Because sometimes the same companion device is shared between, like, many physical devices β the way one group chat has way too many members π β so this distinction genuinely matters in some cases.
β οΈ Heads up bestie: the caller has to provide a valid adev pointer. No cap. Don't be out here passing garbage, fr fr π
π 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_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)
That's the whole thing, icon π This little gem lives over in ./drivers/acpi, its version stamp is October 2026, and it's serving acpi_device_...hysical_node(9) realness. Slay, go check your 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