memblock_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– memblock_free(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this one's memblock_free(9) and it's literally the cleanup crew of early boot memory 🧹✨


✨ NAME ✨

memblock_free β€” free a boot memory allocation 🫢


🌸 SYNOPSIS 🌸

void __init_memblock memblock_free (void *ptr , size_t size );

πŸŽ€ ARGUMENTS πŸŽ€

  • ptr β€” the starting address of the boot memory allocation πŸ‘‰πŸ“
  • size β€” the size of the boot memory block, in bytes πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

So this is the glow-up-reversal function: it frees a boot memory block that was previously allocated by the memblock_alloc_xx API πŸ’…βœ¨

And here's the tea β€” if you call it after the buddy allocator is available, the memory gets released to the buddy allocator. the timing matters, bestie, that's the whole vibe check πŸ‘‘πŸ”₯


🌈 SEE ALSO 🌈

Like, the whole memblock friend group πŸ«ΆπŸ’œ:


and that's the whole page, bestie πŸ’€ no cap, that's all of it. this lil baddie comes from ./mm, stamped October 2026, and it goes by the name memblock_free(9) β€” periodt πŸ’…πŸŽ€πŸŒΊ

πŸ“¦ where this page comes from