of_get_avail...hild_by_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to the of_get_avail...hild_by_name(9) page from the Kernel API Manual πŸ’–

of_get_available_child_by_name β€” find the available child node by name for a given parent. Tiny helper energy, but it absolutely ate πŸ’…βœ¨

πŸ¦‹ SYNOPSIS πŸ¦‹

struct device_node * of_get_available_child_by_name (const struct
device_node *node , const char *name );

πŸŽ€ ARGUMENTS πŸŽ€

  • node β€” parent node.
  • name β€” child name to look for.

πŸ’… DESCRIPTION πŸ’…

So this function looks for the child node with the matching name, then checks the device's availability for use. It's giving "match made in node heaven," and then it does the availability vibe check βœ¨πŸ”

πŸ”₯ RETURN πŸ”₯

  • A node pointer if found, with refcount incremented β€” use of_node_put on it when done. Do not forget, bestie, that's your cleanup duty πŸ’…
  • NULL if node is not found.
Real talk: if you get a pointer back, the refcount is incremented. Use of_node_put on it when done β€” periodt 🫢

🌈 SEE ALSO 🌈

Kernel file ./drivers/of/base.c and the whole friend group:


mwah πŸ’‹ that's the page, bestie β€” source/version situation is ./drivers/of, and this icon is dated October 2026. of_get_avail...hild_by_name(9) out 🫢✨

πŸ“¦ where this page comes from