fdt_validate...ved_mem_node(9)
β¨ NAME β¨
fdt_validate_reserved_mem_node β validates a reserved memory node π
okay so real talk, bestie, this is the fdt_validate...ved_mem_node(9) page from the Kernel API Manual (yes the title is giving truncation era, that's just how the header line renders it, the actual function is the whole name, we move) π
πΈ SYNOPSIS πΈ
int fdt_validate_reserved_mem_node (unsigned long node , phys_addr_t
*align );
like, that's the whole vibe. two args, one int coming back at you π«Ά
π¦ ARGUMENTS π¦
nodeβ the FDT node you want to validate. that's the one, that's the main character π₯alignβ a pointer where the validated alignment gets stored. heads up tho: it may be modified by callback, so don't be weird about it afterwards π
π DESCRIPTION π
so what this function actually does: it iterates through the reserved memory drivers and calls the node_validate callback for the compatible entry that matches the node π
that's it. that's the whole thing. it goes shopping through the reserved memory drivers, finds the compatible entry that matches your node, and hits the node_validate callback. no cap β¨
π RETURN π
0on success β slay π―-ENODEVif no compatible match found β like when nobody matches your vibe at the party π
β SEE ALSO β
the kernel file lives at ./drivers/of/of_reserved_mem.c β that's the home base π
and the whole friend group, all present and accounted for:
fdt_scan_reserved_mem_late(9)fdt_fixup_reserved_mem_node(9)__reserved_mem_init_node(9)fdt_init_reserved_mem_node(9)of_reserved_mem_device_init_by_idx(9)of_reserved_mem_device_init_by_name(9)of_reserved_mem_device_release(9)devm_of_reserved_mem_device_init(9)of_reserved_mem_lookup(9)of_reserved_mem_region_to_resource(9)of_reserved_mem_region_to_resource_byname(9)of_reserved_mem_region_count(9)
ngl this one is a short read but it fully does its job and we respect it for that π§
okay bye bestie, this page came to you from ./drivers/of and it's dated October 2026, section 9 of the Kernel API Manual β mwah, go validate something ππ
π¦ 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