acpi_device...dd_dependent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈


πŸ’œ 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