acpi_dev_get...consumer_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 acpi_dev_get...consumer_dev(9) 🌸

okay bestie so this is a page from the Kernel API Manual and it's literally the whole acpi_dev_get...consumer_dev(9) situation β€” yes the name has an ellipsis in it, that's just how it is, don't @ me πŸ’…


✨ NAME ✨

acpi_dev_get_next_consumer_dev β€” returns the next adev that's dependent on @supplier 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

struct acpi_device * acpi_dev_get_next_consumer_dev (struct acpi_device
* supplier , struct acpi_device *start );

πŸŽ€ ARGUMENTS πŸŽ€

  • supplier β€” pointer to the dependee device πŸ‘‘ (the one everyone's being dependent on, main character energy fr)
  • start β€” pointer to the current dependent device ⭐ (where you're starting from, iykyk)

πŸ’– DESCRIPTION πŸ’–

so the way this works is it returns the next struct acpi_device that declares itself dependent on supplier via the _DEP buffer, parsed from the acpi_dep_list. like it's going down the dependency list and handing you the next one, no cap ✨

🚨 important caveat bestie, listen up: if the returned adev is not passed as start to this function, then the caller is responsible for putting the reference to adev when it's no longer needed. so like, you own that reference now, don't just walk away from it πŸ˜­πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, periodt πŸ’…πŸ¦‹ this icon lives in ./drivers/acpi and got stamped October 2026 β€” so like, future vibes only, slay πŸŒˆπŸ‘‘ mwah, go read some kernel source bestie πŸŽ€

πŸ“¦ where this page comes from