memblock_is_region_reserved(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– memblock_is_region_reserved(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual πŸŽ€ β€” yes the actual kernel, not your laptop's kernel of truth or whatever. this one's a little bool-returning darling from the memblock world and honestly? she's iconic for it.


✨ NAME ✨

memblock_is_region_reserved β€” the "wait, is somebody already sitting there?" check for reserved memory πŸͺ‘πŸ’…


🌸 SYNOPSIS 🌸

bool __init_memblock memblock_is_region_reserved (phys_addr_t base ,
       phys_addr_t size );

like, she takes two args, returns a bool, and she's marked __init_memblock so you know she lives in init-land. periodt. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • base β€” the base of the region you wanna check πŸ” (like, where does your little region start)
  • size β€” the size of the region you're checking πŸ“ (and yes she needs it, the region's a range, not a single point)

πŸ’œ DESCRIPTION πŸ’œ

So the whole vibe here: she checks if the region [base, base + size) intersects a reserved memory block. that's it. that's the function. 🫢

notice the half-open interval, bestie β€” [base, base + size) β€” the opening bracket is closed (base included) and the closing one is open (base + size not included). math girlies get it. no cap. πŸ”₯


⭐ RETURN ⭐

  • True if they intersect πŸ’₯ β€” your region and a reserved block are lowkey overlapping
  • False if not πŸ™ˆ β€” you're in the clear, go off

🌈 SEE ALSO 🌈

okay this list is LONG, so buckle up bestie, we're going through the whole memblock friend group πŸ§šβ€β™€οΈ:

she really said "and here's everyone I know" πŸ˜­πŸ’€ but honestly? main character energy for knowing all of them.


kisses from the ./mm directory πŸ’‹ β€” that's the source/version bestie, and she's dated October 2026 because she's from the future and she's still serving πŸ•°οΈβœ¨ slay. mwah, see u in the next manpage πŸ«ΆπŸ’–

πŸ“¦ where this page comes from