device_get_next_child_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the Kernel API Manual β€” this is the page for device_get_next_child_node, and it's literally β€œReturn the next child node handle for a device.” main character energy for real. ✨

✨ SYNOPSIS ✨

struct fwnode_handle * device_get_next_child_node (const struct device
       *dev , struct fwnode_handle *child );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device we're finding the next child node for. lowkey straightforward.
  • child β€” a handle to one of the device's child nodes, or a NULL handle. no pressure. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

ngl, this one has a tiny gotcha. the caller is responsible for calling fwnode_handle_put on the returned fwnode pointer. also β€” and this is the important part β€” this function also puts a reference to child unconditionally. yes, unconditionally. periodt. πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./drivers/base/property.c, and the whole related bestie gang:


cute sign-off: source/version ./drivers/base, date October 2026, page device_get_next_child_node(9) β€” bye bestie! πŸ’–πŸ’…βœ¨

πŸ“¦ where this page comes from