acpi_bus_get_primary_device(9)
Okay bestie, welcome to the acpi_bus_get_primary_device(9) page from the Kernel API Manual π This one is short, sweet, and very βfind the first physical deviceβ coded. Letβs go β¨
πΈ NAME πΈ
acpi_bus_get_primary_deviceβ Get first physical device for a given ACPI one π
β¨ SYNOPSIS β¨
struct device * acpi_bus_get_primary_device (struct acpi_device *adev );
π¦ ARGUMENTS π¦
adevβ ACPI device to get the first physical device for.
π DESCRIPTION π
So the whole vibe is: find the first physical device for which adev is the ACPI companion, and reference count it if present. Thatβs literally the job, bestie β¨
π₯ RETURN π₯
You get back a pointer to the first physical counterpart of adev, or NULL if there are none. π
β οΈ Callers are responsible for invoking put_device on the returned device. Donβt forget β thatβs the main-character responsibility arc π«Ά
π SEE ALSO π
Kernel file: ./drivers/acpi/bus.c
acpi_bus_notify(9)devm_acpi_install_notify_handler(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)acpi_subsystem_init(9)
mwah π β source/version: ./drivers/acpi, date: October 2026, page: acpi_bus_get_primary_device(9). Bye bestie π
π¦ 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