memblock_set_current_limit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 memblock_set_current_limit(9) 🌸

okay bestie, welcome to the Kernel API Manual β€” yes we're literally reading kernel docs together, this is our bonding time πŸ’–


✨ NAME ✨

memblock_set_current_limit β€” set the current allocation limit so you can cap allocations to only what's actually accessible while the kernel is booting πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

void memblock_set_current_limit (phys_addr_t limit );

πŸ‘‘ ARGUMENTS πŸ‘‘

  • limit β€” the new limit value, and it's a physical address. that's it, that's the whole vibe ✨

πŸ’… SEE ALSO πŸ’…

first up, the file itself lives at ./include/linux/memblock.h β€” go say hi 🫢

and then the whole friend group, no cap, every single one:

like, the whole memblock extended universe πŸ”₯ iykyk


lowkey the whole point of this one: you're limiting allocations to what's currently accessible during boot. it's giving "guardrails but make it physics" πŸ’€

and that's the page, bestie!! mwah πŸ˜­πŸ’œ this little slice of kernel lore comes from the source ./include/linux and is dated October 2026 β€” stay slay, stay booting, periodt πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from