for_each_nhlt_endpoint(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… for_each_nhlt_endpoint(9) β€” from the Kernel API Manual, section 9, bestie πŸŽ€

okay so picture this: you're deep in kernel land, section 9 of the manual, and you need to walk a NHLT table's endpoints one by one. that's it. that's the whole vibe. this macro is your lil tour guide ✨


🌸 NAME 🌸

for_each_nhlt_endpoint β€” literally iterate over endpoints in a NHLT table. no cap, that's the job. πŸ¦‹


✨ SYNOPSIS ✨

for_each_nhlt_endpoint (tb , ep );

look at her. iconic. two args, zero drama. 🫢


πŸ’– ARGUMENTS πŸ’–

  • tb β€” the pointer to a NHLT table. yes bestie, the whole table, hand it over. πŸŽ€
  • ep β€” the pointer to endpoint to use as loop cursor. this one's the main character β€” it's the thing that moves through the loop, step by step, on repeat. πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file ./include/acpi/nhlt.h is where the magic lives, and while you're there, go give these other icons a follow:

they're all in the same friend group, iykyk πŸ’…


ngl if you're looping over NHLT endpoints and you skip these, that's giving "didn't read the group chat." go read them. πŸ™ˆ

and that's the page, bestie! 🌈 this lil gem comes to you from the source ./include/acpi, dated October 2026 β€” periodt, that's the version and the date, don't come for me. πŸ’œβ­πŸ“

πŸ“¦ where this page comes from