of_get_flat_...node_by_name(9)
β¨ 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 operationunameβ 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_NOTFOUNDif 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:
unflatten_dt_nodes(9)__unflatten_device_tree(9)of_fdt_unflatten_tree(9)early_init_fdt_scan_reserved_mem(9)early_init_fdt_reserve_self(9)of_scan_flat_dt(9)of_scan_flat_dt_subnodes(9)of_fdt_is_compatible(9)of_flat_dt_is_compatible(9)of_flat_dt_match_machine(9)early_init_dt_check_for_initrd(9)early_init_dt_check_for_elfcorehdr(9)early_init_dt_check_for_usable_mem_range(9)early_init_dt_check_kho(9)unflatten_device_tree(9)unflatten_and_copy_device_tree(9)
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 underof_get_flat_...node_by_name(9)β periodt. go read some device tree code now, ily ππ§
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms