vmemmap_remap_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– vmemmap_remap_free(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for vmemmap_remap_free, and honestly? it's giving "quietly doing the most important cleanup of your life" energy. ✨


🌸 NAME 🌸

vmemmap_remap_free β€” remap the vmemmap virtual address range [@start, @end) to use @vmemmap_head/@vmemmap_tail, then free vmemmap which the range are mapped to.

like literally, remap the range, then yeet the old vmemmap mapping. both. in one function. icon behaviour. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int vmemmap_remap_free (unsigned long start , unsigned long end , struct
page *vmemmap_head , struct page *vmemmap_tail , struct list_head
*vmemmap_pages , unsigned long flags );

she takes six arguments and returns an int. no cap.


πŸŽ€ ARGUMENTS πŸŽ€

  • start β€” start address of the vmemmap virtual address range that we want to remap. the beginning. the opening scene. πŸŒ…
  • end β€” end address of the vmemmap virtual address range that we want to remap. note the range is [start, end), so end is not included β€” she's exclusive, as she should be. πŸ’…
  • vmemmap_head β€” the page to be installed as first in the vmemmap range. main character energy, literally first in the range. πŸ‘‘
  • vmemmap_tail β€” the page to be installed as non-first in the vmemmap range. the supporting cast, but make no mistake, she's still in the range. 🫢
  • vmemmap_pages β€” list to deposit vmemmap pages to be freed. ⚠️ it is callers responsibility to free pages β€” so bestie, this function hands you the pages in a little basket and goes "k, your turn now". do NOT forget to free them. that's on you, not on her. πŸ™ˆ
  • flags β€” modifications to vmemmap_remap_walk flags. little toggles, big consequences. πŸ”₯

⭐ RETURN ⭐

0 on success, negative error code otherwise.

that's it. zero means slay, negative means something's off and you should probably read the code. πŸ’€


🌈 SEE ALSO 🌈

the whole friend group honestly. go say hi. πŸ¦‹


anyway that's the page, bestie β€” courtesy of ./mm, dated October 2026, and yes she's still signing off as vmemmap_remap_free(9) because consistency is key. mwah. πŸ’œ

πŸ“¦ where this page comes from