acpi_nhlt_find_endpoint(9)
πΈ NAME πΈ
okay so bestie, welcome to the acpi_nhlt_find_endpoint(9) page from the Kernel API Manual π this function is iconic for one reason:
acpi_nhlt_find_endpoint β Search all NHLT tables for an endpoint.
no cap, that's the mission π―
β¨ SYNOPSIS β¨
Here's the exact summoning circle, character for character:
struct acpi_nhlt_endpoint * acpi_nhlt_find_endpoint (int link_type , int
dev_type , int dir , int bus_id );
π ARGUMENTS π
link_typeβ the hardware link type, e.g.:PDMorSSP. yes bestie, those are the vibes.dev_typeβ the device type. that's the whole descriptor.dirβ stream direction. which way the stream is going, periodt.bus_idβ the ID of virtual bus hosting the endpoint. it's literally the bus's name tag π
π¦ DESCRIPTION π¦
So here's the lowkey genius part: Either of link_type, dev_type, dir or bus_id may be set to a negative value to ignore the parameter during the search. negative = "not today, bestie" for that filter, and the search just moves on π
π RETURN π
A pointer to endpoint matching the criteria, NULL if not found or an ERR_PTR otherwise. vibe check: pointer, NULL, or ERR_PTR β that's the whole return situation, fr fr.
π₯ SEE ALSO π₯
First up, the kernel file ./drivers/acpi/nhlt.c β go read it, iykyk π then these function besties:
acpi_nhlt_get_gbl_table(9)acpi_nhlt_put_gbl_table(9)acpi_nhlt_endpoint_match(9)acpi_nhlt_tb_find_endpoint(9)acpi_nhlt_endpoint_find_fmtcfg(9)acpi_nhlt_tb_find_fmtcfg(9)acpi_nhlt_find_fmtcfg(9)acpi_nhlt_endpoint_mic_count(9)
okay bye bestie π«Ά this page comes from ./drivers/acpi, dated October 2026, and it belongs to acpi_nhlt_find_endpoint(9) β slay π
π¦ 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