acpi_bus_fin...vice_by_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the acpi_bus_fin...vice_by_name(9) page in the Kernel API Manual πŸ’… The actual function is acpi_bus_find_device_by_name β€” it locates an ACPI device by its name. That's the whole vibe: find the device by name, get a reference, and don't forget your cleanup era. ✨


✨ SYNOPSIS ✨

struct device * acpi_bus_find_device_by_name (const char *name );

πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” name of the device to match. That's the argument, bestie. πŸ“

🌸 DESCRIPTION 🌸

Read this part with your whole chest: the caller is responsible for calling put_device on the returned object. No cap, that's on you. πŸ’€

So if you get a returned object, you gotta put_device it. Don't leave it hanging, okay? πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

Returns a new reference to the matched device, or NULL if the device can't be found. slay. 😭

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ β€” signing off from source/version ./drivers/acpi, dated October 2026, for acpi_bus_fin...vice_by_name(9). Stay iconic, bestie. 🫢✨
πŸ“¦ where this page comes from