of_get_flat_...node_by_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ of_get_flat_...node_by_name(9) β€” Kernel API Manual ✨

okay bestie, welcome to the of_get_flat_...node_by_name(9) page πŸ’… (yes the title is doing the absolute most with those dots, but we move). This is the Kernel API Manual, and honestly? It's a little one, but it's a useful one. Let's get into it 🫢


🌸 NAME 🌸

of_get_flat_dt_subnode_by_name β€” grab the subnode by the name you give it πŸŽ€


✨ SYNOPSIS ✨

int of_get_flat_dt_subnode_by_name (unsigned long node , const char
*uname );

so it takes two things and it gives you back an int, that's the whole vibe ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • node β€” the parent node πŸ’– like, the one you're browsing from, the main character of this operation
  • uname β€” the name of the subnode πŸ” and psst, this line is also where they tuck the return info: it returns the offset of the subnode, or -FDT_ERR_NOTFOUND if there is none 😭 no subnode bestie, no offset

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./drivers/of/fdt.c and here's the whole friend group 🫢 go say hi:


okay that's the page!! short and sweet, just like this function πŸ“

little sign-off from me to you: this one came from ./drivers/of, dated October 2026, and it's filed under of_get_flat_...node_by_name(9) β€” periodt. go read some device tree code now, ily πŸ’œπŸ§š
πŸ“¦ where this page comes from