of_graph_ge...ort_endpoint(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ of_graph_ge...ort_endpoint(9) πŸ¦‹

okay so bestie, welcome to the Kernel API Manual page for of_graph_ge...ort_endpoint(9) πŸ’– this is the one about getting the next endpoint node in a port, and we are keeping every fact exactly where it belongs. no cap.

🌸 NAME 🌸

of_graph_get_next_port_endpoint β€” get next endpoint node in port. If it reached to end of the port, it will return NULL.

✨ SYNOPSIS ✨

struct device_node * of_graph_get_next_port_endpoint (const struct device_node *port , struct device_node *prev );

πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” pointer to the target port node πŸ‘‘
  • prev β€” previous endpoint node, or NULL to get first 🫢

πŸ’– RETURN πŸ’–

An 'endpoint' node pointer with refcount incremented. Refcount of the passed prev node is decremented. That refcount bookkeeping is lowkey important, bestie β€” don't sleep on it πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/of/property.c is right here, plus the whole friend group:


mwah πŸ’‹ this page’s source/version is ./drivers/of, it’s dated October 2026, and the title riding the header/footer is of_graph_ge...ort_endpoint(9) πŸŽ€βœ¨

πŸ“¦ where this page comes from