for_each_endpoint_of_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the for_each_endpoint_of_node(9) page from the Kernel API Manual β€” this one is literally about for_each_endpoint_of_node: iterate over every endpoint in a device node. periodt ✨

🌸 SYNOPSIS 🌸

for_each_endpoint_of_node (parent , child );

πŸŽ€ ARGUMENTS πŸŽ€

  • parent β€” parent device node containing ports and endpoints, iykyk 🫢
  • child β€” the loop variable pointing to the current endpoint node 🌟

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe check: when you break out of the loop, you have to call of_node_put(child) manually. not me reminding you again πŸ˜­πŸ’…

🌈 SEE ALSO 🌈


mwah πŸ’‹ this iconic little page is from ./include/linux, dated October 2026, and it’s serving for_each_endpoint_of_node(9) energy. byeee πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from