fdt_find_and_del_mem_rsv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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