fwnode_graph...ext_endpoint(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fwnode_graph...ext_endpoint(9) β€” Kernel API Manual

okay so bestie, welcome to the glow-up edition of the fwnode_graph...ext_endpoint(9) page from the Kernel API Manual ✨ this one's short but she's important, so pay attention πŸŽ€


🌸 NAME 🌸

fwnode_graph_get_next_endpoint β€” get the next endpoint firmware node, literally that's her whole job πŸ¦‹


✨ SYNOPSIS ✨

struct fwnode_handle * fwnode_graph_get_next_endpoint (const struct
fwnode_handle *fwnode , struct fwnode_handle *prev );

πŸŽ€ ARGUMENTS πŸŽ€

  • fwnode β€” pointer to the parent firmware node πŸ‘‘ like, the one who's holding all the endpoints, she's the mother of the group chat
  • prev β€” the previous endpoint node, or NULL if you wanna grab the first one 🌱 starting fresh, no baggage, we love a clean slate

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜• β€” you, the caller, are responsible for calling fwnode_handle_put on the returned fwnode pointer. no cap, that's on you, don't forget it or you're leaking refs and that's not the vibe πŸ™ˆ

and also β€” the way that this function also puts a reference to prev unconditionally?? yeah. it does that. so don't go putting it again yourself, bestie, that's double-dipping and the kernel will Not be happy 😭


⭐ RETURN ⭐

an endpoint firmware node pointer 🫢 β€” or NULL if there are no more endpoints available. that's it, that's the whole answer. NULL = you've reached the end of the line, no more endpoints, go home 🏠


🌈 SEE ALSO 🌈

Kernel file ./drivers/base/property.c β€” and like, the whole extended friend group πŸ’œ :


reminder bestie: fwnode_handle_put on the return value, and remember prev gets put for you. iykyk πŸ’…

and that's the whole page, mwah 😘 this little icon was brought to you by the fine folks over in ./drivers/base, dated October 2026 β€” periodt, go read the source, ily, bye πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from