acpi_bus_fin...vice_by_name(9)
π 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 π¦
- Kernel file
./drivers/acpi/bus.cβ the source vibes. π acpi_bus_notify(9)devm_acpi_install_notify_handler(9)acpi_bus_get_primary_device(9)acpi_get_first_physical_node(9)acpi_device_is_first_physical_node(9)acpi_of_match_device(9)acpi_set_modalias(9)acpi_match_acpi_device(9)acpi_match_device(9)acpi_early_init(9)acpi_subsystem_init(9)
mwah π β signing off from source/version./drivers/acpi, datedOctober 2026, foracpi_bus_fin...vice_by_name(9). Stay iconic, bestie. π«Άβ¨
π¦ 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