fwnode_graph..._port_parent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fwnode_graph_get_port_parent β€” the Kernel API Manual, bestie edition ✨

Okay so you're in the <pink>Kernel API Manual</pink>, land of the <purple>fwnode_graph..._port_parent(9)</purple> page, and honestly? This one is short and sweet. Let's get into it πŸŽ€


🌸 NAME 🌸

fwnode_graph_get_port_parent β€” this one hands you back the device fwnode of a port endpoint. That's the vibe πŸ’«


✨ SYNOPSIS ✨

struct fwnode_handle * fwnode_graph_get_port_parent (const struct fwnode_handle *endpoint );

Like, literally that. Signature stays exactly like that, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • endpoint β€” the endpoint firmware node of the port. That's the thing you're passing in, bestie πŸ’–

🧚 DESCRIPTION 🧚

So the one thing you cannot forget here: the caller is responsible for calling fwnode_handle_put on the returned fwnode pointer. That's on you, main character. Nobody's gonna clean that up for you 😭 Own your refcounts, periodt.


πŸ‘‘ RETURN πŸ‘‘

It gives you back the firmware node of the device the endpoint belongs to. Iconic. That's the whole return value 🌈 (and remember the fwnode_handle_put thing from up there, fr fr)


⭐ SEE ALSO ⭐

Kernel file: ./drivers/base/property.c

And now the whole crew, because they all come as a package deal πŸ’…


Quick vibe check: every single one of those (9) references is legit, don't skip 'em β€” that's your reading list for the day πŸ“šβœ¨

And that's the page, bestie! 🫢 This little beauty lives in ./drivers/base, dated October 2026, filed under fwnode_graph..._port_parent(9). Go forth, grab your port parent, and please remember the fwnode_handle_put. Mwah πŸ’‹

πŸ“¦ where this page comes from