for_each_of...ort_endpoint(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ NAME πŸ¦‹

for_each_of_graph_port_endpoint β€” iterate over every endpoint in a port node πŸ’… this page is from the Kernel API Manual, and it's lowkey a baddie.


🌸 SYNOPSIS 🌸

for_each_of_graph_port_endpoint (parent , child );

πŸŽ€ ARGUMENTS πŸŽ€

  • parent β€” parent port node πŸ‘‘
  • child β€” loop variable pointing to the current endpoint node πŸŒ€

πŸ’– DESCRIPTION πŸ’–

okay so when you break out of the loop and then keep using child, you need to use return_ptr(child) or no_free_ptr(child) so it doesn't call __free on it. That's the rule, bestie β€” no cap, don't skip it or the free will snatch your node away πŸ˜­πŸ™ˆ


🌈 SEE ALSO 🌈


source/version: ./include/linux Β· date: October 2026 Β· page: for_each_of...ort_endpoint(9) β€” mwah, that's the whole page, bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from