of_graph_get_next_endpoint(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_graph_get_next_endpoint(9) β€” get next endpoint node πŸŽ€

Okay so bestie, listen up, this is from the Kernel API Manual and it's literally about walking the device tree graph, one endpoint at a time. It's giving "traverse the graph, queen" energy and I'm obsessed. ✨


🌸 SYNOPSIS 🌸

struct device_node * of_graph_get_next_endpoint (const struct device_node *parent , struct device_node *prev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • parent β€” pointer to the parent device node πŸ’– (this is the node you're poking around in, iykyk)
  • prev β€” previous endpoint node, or NULL to get the first one 🌟 (pass NULL when you're starting fresh, no cap)

πŸ‘‘ RETURN πŸ‘‘

An 'endpoint' node pointer with refcount incremented. And the way that it also decrements the refcount of the passed prev node β€” periodt, that's the whole deal. πŸ’…

Not me reminding you to handle your refcounts properly, bestie β€” this function does the increment/decrement dance for you, but you still gotta be responsible with the pointer it hands back. 🫢

🌈 SEE ALSO 🌈

Kernel file ./drivers/of/property.c β€” and literally the whole squad of property/graph functions are tagged along, so here's the full list, no skips:


✨ And that's the whole page, bestie β€” from ./drivers/of, October 2026, version-tagged as of_graph_get_next_endpoint(9). Go forth and slay those graph traversals! πŸ’œπŸ”₯

πŸ“¦ where this page comes from