vma_shrink(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ vma_shrink(9) ✨

okay bestie, welcome to the Kernel API Manual side of the group chat β€” this page is about vma_shrink, and it's literally the β€œshrink the end of a VMA” manual. no cap πŸ’…


🌸 NAME 🌸

vma_shrink - Shrink the end of a VMA

πŸ¦‹ SYNOPSIS πŸ¦‹

int vma_shrink (struct vma_iterator *vmi , struct vm_area_struct *vma ,
unsigned long end );

πŸŽ€ ARGUMENTS πŸŽ€

  • vmi β€” the vma iterator. that's the iterator bestie 🫢
  • vma β€” the VMA to modify. main-character VMA energy, honestly πŸ‘‘
  • end β€” the new end. yep, the new end, periodt ✨

πŸ’– DESCRIPTION πŸ’–

⚠️ Note that the caller may only shrink the end of the VMA.

fr fr, that's the vibe check: the caller may only shrink the end of the VMA. keep it in mind, bestie πŸ’…

⭐ RETURN ⭐

  • 0 on success β€” slay πŸŽ‰
  • -ENOMEM otherwise β€” not slay 😭

🌈 SEE ALSO 🌈

xoxo from your ./mm bestie πŸ’Œ β€” October 2026, signed vma_shrink(9) 🫢

πŸ“¦ where this page comes from