unflatten_dt_nodes(9)
πΈ unflatten_dt_nodes(9) πΈ
okay so bestie, welcome to the Kernel API Manual β¨ this one is unflatten_dt_nodes(9) and it's literally the glow-up artist for device trees β it takes the flat blob and makes it structured. we love a makeover moment π
β¨ NAME β¨
unflatten_dt_nodes β Alloc and populate a device_node from the flat tree π¦
like, it allocates stuff and populates a device_node, using the flat tree as the inspo. no cap.
π SYNOPSIS π
int unflatten_dt_nodes (const void *blob , void *mem , struct
device_node *dad , struct device_node **nodepp );
here's the whole vibe, signature and all π
π ARGUMENTS π
blobβ The parent device tree blob π³ the original flat-tree situation, the raw material, the before-photomemβ Memory chunk to use for allocating device nodes and properties π this is the budget, bestie β all thedevice_nodes and properties get allocated out of this chunkdadβ Parentstruct device_nodeπ the parent node, the main character these new nodes get attached undernodeppβ Thedevice_nodetree created by the call β¨ the output β the whole tree this call builds, handed back to you through this pointer
π₯ RETURN π₯
The size of unflattened device tree or error code β so on a slay day you get the size of the unflattened device tree, and on a flop day you get an error code π check it, fr fr.
π SEE ALSO π
Kernel file ./drivers/of/fdt.c β and the whole friend group π«Ά:
__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_get_flat_dt_subnode_by_name(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)
and that's the whole page, bestie β go unflatten some nodes and live your truth π§π
this lil masterpiece lives in./drivers/of, dated October 2026, and yes the page is also calledunflatten_dt_nodes(9)because consistency is iconic π periodt.
π¦ 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