of_get_next_parent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Bestie, welcome to the of_get_next_parent(9) page from the Kernel API Manual β€” yes, the manual name is literally in the house. This function is here to help you iterate to a node's parent. Iconic behavior, honestly. πŸŽ€


✨ SYNOPSIS ✨

Here's the signature, copied exactly so nobody has to guess:

struct device_node * of_get_next_parent (struct device_node *node );

πŸ’… ARGUMENTS πŸ’…

  • node β€” the node you want the parent of. That's it, that's the argument. Slay. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture of_get_parent, right? This is like that, except it drops the refcount on the passed node, which makes it suitable for iterating through a node's parents. No cap, that's the whole vibe. πŸ¦‹


πŸŽ€ RETURN πŸŽ€

You get back a node pointer with refcount incremented. When you're done with it, use of_node_put on it β€” do not ghost that part, bestie. 😭

Refcount reminder: use of_node_put on it when done. This is not optional, fr fr. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/of/base.c is in the mix, plus this whole iconic lineup:


Footer vibes, bestie: this page lives under ./drivers/of, dated October 2026, and it's literally the of_get_next_parent(9) manual page. Go forth and parent-hop responsibly πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from