vma_shrink(9)
β¨ 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 β
0on success β slay π-ENOMEMotherwise β not slay π
π SEE ALSO π
- Kernel file
./mm/vma.cβ the source file, iykyk π mmap_region(9)do_brk_flags(9)unmapped_area(9)unmapped_area_topdown(9)vma_mmu_pagesize(9)
xoxo from your ./mm bestie π β October 2026, signed vma_shrink(9) π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms