driver_find_..._by_acpi_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

driver_find_device_by_acpi_dev β€” bestie, it's a device iterator, and its whole job is to go find you that one particular device that matches the ACPI_COMPANION device. Like a little scavenger hunt but for kernel devices πŸŽ€


✨ SYNOPSIS ✨

struct device * driver_find_device_by_acpi_dev (const struct device_driver *drv , const struct acpi_device *adev );

So it hands you back a struct device * β€” the one you were looking for, iykyk πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • drv β€” the driver we're iterating. Yes, "we." You and the kernel, doing this together, no cap. This is the driver whose devices get walked through, one by one πŸ”₯
  • adev β€” the ACPI_COMPANION device to match. This is the one we're matching against, literally the whole point of the search 🎯

🌈 SEE ALSO 🌈

Squad goals, all of them, in the order the page lists them:

Like, the whole friend group of finders. Go say hi to the rest of them 🫢


This page is from the Kernel API Manual β€” that's the header's manual name, folded in right here so nothing gets lost bestie πŸ’–

Okay so that's the whole vibe! This gorgeous little number lives in ./include/linux/device, dated October 2026, and it's filed under driver_find_..._by_acpi_dev(9). Slay, iconic, periodt πŸŒΈβœ¨πŸ‘‘

πŸ“¦ where this page comes from