yamon_dt_append_memory(9)
π yamon_dt_append_memory β bestie edition π
okay so this is from the Kernel API Manual, section 9, and the function is literally called yamon_dt_append_memory. say it with me: yamon_dt_append_memory. iconic name, no notes β¨
πΈ NAME πΈ
yamon_dt_append_memory β append YAMON-provided memory info to /memory π«Ά
π SYNOPSIS π
int yamon_dt_append_memory (void *fdt , const struct yamon_mem_region
*regions );
like yes bestie we're calling it with an fdt and a regions pointer, keep up π
π¦ ARGUMENTS π¦
fdtβ the FDT blob. that's the whole vibe. π§regionsβ a zero size terminated array of physical memory regions. yes, the termination is a zero size, don't forget it or it's giving infinite loop energy π
β¨ DESCRIPTION β¨
So what it does is generate a /memory node in fdt, based upon memory size information provided by YAMON in its environment and the regions array. both. together. slay π
Literally the whole job is: YAMON says how much memory, you hand over your regions, and boom β /memory node gets generated in the fdt. periodt.
π₯ RETURN π₯
0 on success, else -errno. that's it, that's the return value. negative errno is the "something went wrong bestie" signal π
π SEE ALSO π
- Kernel file
./arch/mips/include/asm/yamon-dt.hstructyamon_mem_region(9) yamon_dt_append_cmdline(9)yamon_dt_serial_config(9)
go read those too, iykyk π
fr fr the details above are the whole page β nothing extra, nothing missing π
and that's a wrap, bestie! written from ./arch/mips/include/asm, dated October 2026, and yes the page is literally named yamon_dt_append_memory(9) β go off, kernel docs π
ππΈ
π¦ 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