fdt_find_and_del_mem_rsv(9)
π fdt_find_and_del_mem_rsv β the Kernel API Manual, section 9, bestie β¨
Okay so real talk, this is one of those little kernel helpers that lives in the 9 section of the Kernel API Manual, and honestly? It's giving "small function, big responsibility." π Its whole vibe is: delete a memory reservation that has a given address and size. That's it. That's the function. And it ate. π
πΈ NAME πΈ
fdt_find_and_del_mem_rsv β delete memory reservation with given address and size
Like, you hand it an address and a size, and it goes and finds that reservation and yeets it. No cap. π₯
β¨ SYNOPSIS β¨
int fdt_find_and_del_mem_rsv (void *fdt , unsigned long start , unsigned long size );
Three arguments, one int coming back at you. Simple. Iconic. π«Ά
π ARGUMENTS π
fdtβ Flattened device tree for the current kernel. Bestie, this is the tree, the one that belongs to the kernel you're running right now, not some rando tree, okay? π³startβ Starting address of the reserved memory. Like where the reservation begins, address-wise. πsizeβ Size of the reserved memory. How many bytes we're talking about here. π
π RETURN π
0 on success β slay, we did it π
Or a negative errno on error β not slay, something went sideways π (it's a negative errno, so like, the classic kernel way of saying "nope" π)
π¦ SEE ALSO π¦
The kernel file ./drivers/of/kexec.c and its whole friend group:
get_addr_size_cells(9)do_get_kexec_buffer(9)ima_get_kexec_buffer(9)ima_free_kexec_buffer(9)remove_ima_buffer(9)setup_ima_buffer(9)
Squad goals, fr fr. π
π§ Sign-off π§
This little baddie comes to you from ./drivers/of, dated October 2026, and it's living its best life in the Kernel API Manual, section 9. Go forth and delete those reservations, bestie. 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