acpi_device_...hysical_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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