for_each_of...ort_endpoint(9)
π¦ 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 π
- Kernel file
./include/linux/of_graph.hποΈ struct of_endpoint(9)π§for_each_endpoint_of_node(9)β¨for_each_of_graph_port(9)π«
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
- 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