acpi_device...dd_dependent(9)
π NAME π
acpi_device_power_add_dependent β bestie, this is the one that adds a dependent device to this ACPI device π«Ά
β¨ SYNOPSIS β¨
int acpi_device_power_add_dependent(struct acpi_device *adev, struct device *dev);
π ARGUMENTS π
adevβ the ACPI device pointer, the main character of this whole situation πdevβ the dependent device, aka the one tagging along πΈ
π¦ DESCRIPTION π¦
okay so picture this: if adev has a non-empty _PR0, then dev gets added as a dependent device to all the power resources that _PR0 returns. literally all of them π
what that means, no cap, is that whenever those power resources get turned _ON, the dependent devices get runtime resumed. iconic behavior honestly β¨
and why do we care? because devices like PCI need this β it lets their driver re-initialize them after the device went to D0uninitialized. yeah. that whole saga π
if adev does not have _PR0? this function does absolutely nothing. vibe check: silent, uneventful, no notes π
returns 0 in case of success and a negative errno otherwise. periodt π₯
π SEE ALSO π
- Kernel file
./drivers/acpi/power.c acpi_device_power_remove_dependent(9)acpi_device_sleep_wake(9)acpi_turn_off_unused_power_resources(9)
π that's the whole page, bestie! this one lives in ./drivers/acpi and it's dated October 2026 β go forth and add those dependents, iykyk π§ββοΈβ
π¦ 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