acpi_dev_get_pci_dev(9)
π acpi_dev_get_pci_dev(9) β Kernel API Manual π
okay so bestie, welcome to the glow-up of the <pink>acpi_dev_get_pci_dev</pink> page from the Kernel API Manual β¨ this one's short and sweet, literally a little matchmaker function that hooks your ACPI device up with its PCI bestie π
β¨ NAME β¨
acpi_dev_get_pci_dev β get a struct pci_dev for a given ACPI device π«Ά
πΈ SYNOPSIS πΈ
struct pci_dev * acpi_dev_get_pci_dev (struct acpi_device *adev );
π¦ ARGUMENTS π¦
adevβ your target ACPI device, the main character in question π
π DESCRIPTION π
so what it does is: find the PCI device associated with adev, if any, and bump up its reference counter β¨ like it's giving matchmaker energy, it finds the PCI partner and then makes sure the refcount knows somebody's holding onto it now π₯
heads up bestie π callers are responsible for dropping the PCI device reference obtained by this function. no cap, that's on you. don't just walk away from it π
π RETURN π
the struct pci_dev pointer of a reference-counted PCI device on success π or NULL on failure π that's the whole vibe check.
π SEE ALSO π
- Kernel file
./drivers/acpi/pci_root.cπ acpi_is_root_bridge(9)π§acpi_pci_osc_control_set(9)β
and that's the page, periodt π
this lil section lives in ./drivers/acpi, dated October 2026 π and the page itself is literally called acpi_dev_get_pci_dev(9) β iykyk, slay, go drop that reference π«Άπ
π¦ 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