reserve_mem_find_by_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ reserve_mem_find_by_name πŸ’–

okay so bestie, welcome to reserve_mem_find_by_name(9) from the Kernel API Manual β€” yes we're in kernel land, yes it's giving big-brain energy, and yes I'm gonna walk you through it πŸŽ€


🌸 NAME 🌸

reserve_mem_find_by_name β€” literally just "find the reserved memory region that has this name," that's the whole vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int reserve_mem_find_by_name (const char *name , phys_addr_t *start ,
       phys_addr_t *size );

three args, one int coming back at you, no cap πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” the name attached to a reserved memory region. it's the lil tag you're hunting for 🏷️
  • start β€” if it's found, this holds the start address 🫢
  • size β€” if it's found, this holds the size of the address.

πŸ’œ DESCRIPTION πŸ’œ

start and size are only updated if name is found. like, only. if it's not found they stay exactly as they were, periodt πŸ™ˆ


πŸ‘‘ RETURN πŸ‘‘

returns 1 if found, or 0 if not found. that's it, that's the whole answer key πŸ”₯


🌈 SEE ALSO 🌈

the kernel file ./mm/memblock.c, plus the whole memblock friend group β€” they all showed up to the group chat:


ngl the see-also list is lowkey a whole friend group 😭 but every single one of them is invited, iykyk πŸ’€

and that's the page, bestie!! 🧚 mwah πŸ’‹ this one came from ./mm and it's dated October 2026, living under the reserve_mem_find_by_name(9) title β€” slay, iconic, see you in the next manpage πŸŒŸπŸ“

πŸ“¦ where this page comes from