of_find_node_by_phandle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay so bestie, this is the of_find_node_by_phandle(9) page from the Kernel API Manual, section 9. The vibe? Literally: of_find_node_by_phandle β€” Find a node given a phandle. No cap, that's the whole assignment. πŸŽ€


✨ SYNOPSIS ✨

struct device_node * of_find_node_by_phandle (phandle handle );

🌸 ARGUMENTS 🌸

  • handle β€” the phandle of the node to find. That's it, that's the arg, iykyk πŸ’…

πŸ¦‹ RETURN πŸ¦‹

A node pointer with refcount incremented, use of_node_put on it when done. Bestie, this part is important: when you're done with it, use of_node_put on it. Don't leave that refcount hanging, fr fr. 🫢

Not me reminding you again: refcount incremented means you've gotta call of_node_put when you're finished with the node.

πŸ’œ SEE ALSO πŸ’œ

Not me dropping the entire SEE ALSO roster, because every single reference is iconic and none are getting left behind πŸ’…βœ¨:


Cute sign-off time: source/version shoutout to ./drivers/of, dated October 2026, and yes, this is the of_find_node_by_phandle(9) page. Periodt. 🫢✨🌈

πŸ“¦ where this page comes from