vma_modify_name(9)
π
vma_modify_name β the Kernel API Manual, but make it cute π
Okay bestie, so we're in the Kernel API Manual today and the star of the show is vma_modify_name(9). No cap, this one's a little sneaky β read the DESCRIPTION before you go touching anything, trust. π
β¨ NAME β¨
vma_modify_name β do all the split/merge prep work so you can set an anonymous VMA name to @new_name across the range @start to @end that lives inside @vma. Literally just the prep, she's not doing the actual naming, iykyk. π¦
πΈ SYNOPSIS πΈ
struct vm_area_struct * vma_modify_name (struct vma_iterator *vmi ,
struct vm_area_struct *prev , struct vm_area_struct *vma , unsigned long
start , unsigned long end , struct anon_vma_name *new_name );
π ARGUMENTS π
vmiβ a valid VMA iterator, and it's gotta be positioned atvma. Chillin' right on it. πprevβ the VMA that comes immediately beforevma, orNULLifvmais the very first one. Main character energy, no predecessor. πvmaβ the VMA holding the rangestarttoendthat we're about to update. She contains multitudes. πstartβ where the range to update begins. Fair warning: it may be offset insidevma, so like, not necessarily at the front. πendβ the exclusive end of the range to update. Also possibly offset insidevma. Exclusive, babe, she's not included. πnew_nameβ the anonymous VMA name thatstarttoendis about to be set to. About to. Future tense. Do not come for her yet. β
π«Ά DESCRIPTION π«Ά
IMPORTANT: the actual modification you're asking for is NOT applied here. Nope, not even a little. What happens instead is the VMA is perhaps split, perhaps merged, all so it's ready to accommodate the change β and then you, the caller, are expected to perform the actual modification yourself. It's giving "I set the stage, you do the performance." ππ
π₯ RETURN π₯
A VMA that contains the range start to end, all ready to have its anonymous VMA name changed to new_name. She's prepped, she's staged, she's waiting on you. β¨
π¦ SEE ALSO π¦
- Kernel file
./mm/vma.h vma_modify_flags(9)vma_modify_policy(9)vma_modify_flags_uffd(9)
Go read those too, bestie, they're all in their own little glow-up era. πΈ
okay that's the whole page, no crumbs left behind π β this gem dropped from ./mm back in October 2026, part of the Kernel API Manual, and honestly? iconic. periodt. πβ¨
π¦ 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