acpi_nhlt_find_endpoint(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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.: PDM or SSP. 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:

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