memblock_reserved_mark_kern(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– memblock_reserved_mark_kern (9) β€” Kernel API Manual πŸ’–

okay so bestie, welcome to the kernel API docs, this one's literally called memblock_reserved_mark_kern and it's about tagging a reserved memory region with a flag. slay. let's get into it 🫢


✨ NAME ✨

memblock_reserved_mark_kern β€” marks a reserved memory region with the flag MEMBLOCK_RSRV_KERN. that's the whole vibe. no cap. πŸŽ€


🌸 SYNOPSIS 🌸

int __init_memblock memblock_reserved_mark_kern (phys_addr_t base ,
       phys_addr_t size );

look at her go 😭 she takes two args and gives you back an int, and she's both __init_memblock and iconic. iykyk.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • base β€” the base phys addr of the region. like, where the region starts, physically πŸ’«
  • size β€” the size of the region. how much of it there is, bestie πŸ“

πŸ”₯ RETURN πŸ”₯

  • 0 on success ✨
  • -errno on failure πŸ’€

so basically if you get 0 you ate, and if you get a negative errno something went sideways and it's giving error vibes. periodt.


πŸ‘‘ SEE ALSO πŸ‘‘

okay this list is lowkey long but every single one matters, so here we go, no skipping, fr fr πŸ’…

like, that's the whole memblock friend group and they're all linked. main character energy all around 🌈⭐


ngl bestie, this is a kernel-internal thing, so don't go calling it from userspace, it lives in ./mm where the memory management girlies hang out 🧚

mwah πŸ’‹ this page came from the source ./mm and it's dated October 2026 β€” go off, kernel docs, you absolute legend πŸ‘‘πŸ’–

πŸ“¦ where this page comes from