of_graph_get_port_by_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so this is of_graph_get_port_by_id(9) from the Kernel API Manual β€” and its whole main-character job is literally: get the port matching a given id. no cap. πŸ’…


✨ SYNOPSIS ✨

bestie, the signature is giving exactly this:

struct device_node * of_graph_get_port_by_id (struct device_node *parent
, u32 id );

πŸŽ€ ARGUMENTS πŸŽ€

  • parent β€” pointer to the parent device node 🌳
  • id β€” id of the port πŸ”’

πŸ’– RETURN πŸ’–

You get a 'port' node pointer with its refcount incremented. The caller has to use of_node_put on it when done β€” that cleanup step is mandatory, bestie. 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

The manual also points y’all at the Kernel file ./drivers/of/property.c, plus this whole bestie squad:


mwah πŸ’… β€” source/version: ./drivers/of, dated October 2026, for of_graph_get_port_by_id(9). 🫢

πŸ“¦ where this page comes from