of_graph_get_port_parent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 of_graph_get_port_parent(9) 🌸

okay so welcome to the Kernel API Manual, bestie β€” today we're decoding of_graph_get_port_parent(9), and it is lowkey giving "find the port's parent node" main character energy. no cap. 🫢


✨ NAME ✨

of_graph_get_port_parent β€” get port's parent node πŸ’…

πŸ’– SYNOPSIS πŸ’–

struct device_node * of_graph_get_port_parent (struct device_node *node
);

πŸŽ€ ARGUMENTS πŸŽ€

  • node β€” pointer to a local endpoint device_node. that's the little input bestie you hand over. 🌸

⭐ RETURN ⭐

It hands back the device node associated with the endpoint node linked to node. Use of_node_put on it when done β€” periodt, bestie, that's the cleanup rule. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/of/property.c β€” yes, that's the spot, iykyk. Related reads and graph helpers, all lined up:


mwah πŸ’‹ β€” that's the whole page, bestie. Sign-off from the Kernel API Manual, source ./drivers/of, dated October 2026. πŸ¦‹

πŸ“¦ where this page comes from