of_graph_get_port_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to of_graph_get_port_count(9) from the Kernel API Manual πŸŽ€ β€” this is the function whose whole thing is to get the number of port in a device or ports node. literally that's the assignment, and she ate πŸ’…

🫢 SYNOPSIS 🫢

unsigned int of_graph_get_port_count (struct device_node *np );

πŸ’… ARGUMENTS πŸ’…

  • np β€” pointer to the device or ports node. that's the node you're handing over, bestie 🫢

πŸŽ€ RETURN πŸŽ€

count of port of this device or ports node. no cap, that's the return value πŸ’–

🌈 SEE ALSO 🌈

Kernel file ./drivers/of/property.c β€” plus the whole icon friend group:


made with so much love from source ./drivers/of, dated October 2026, for of_graph_get_port_count(9) πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from