for_each_endpoint_of_node(9)
π 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 π
- Kernel file
./include/linux/of_graph.h struct of_endpoint(9)for_each_of_graph_port(9)for_each_of_graph_port_endpoint(9)
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
- 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