find_vma_intersection(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– find_vma_intersection(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for find_vma_intersection β€” it's giving β€œlook up the first VMA which intersects the interval” energy, and honestly? iconic. πŸ¦‹


🌸 NAME 🌸

find_vma_intersection β€” look up the first VMA which intersects the interval. periodt. πŸ’…


✨ SYNOPSIS ✨

struct vm_area_struct * find_vma_intersection (struct mm_struct *mm , unsigned long start_addr , unsigned long end_addr );

πŸ’… ARGUMENTS πŸ’…

  • mm β€” the process address space. that's the whole vibe. 🫢
  • start_addr β€” the inclusive start user address. it's included, bestie. πŸ’–
  • end_addr β€” the exclusive end user address. not included, no cap. πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

the first VMA within the provided range, and NULL otherwise. literally that simple. ✨

heads up: this assumes start_addr < end_addr. keep that in mind, okay? 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./mm/mmap.c β€” plus the squad: do_mmap(9), find_vma(9), and find_vma_prev(9). go read those too, iykyk. πŸ‘‘


mwah πŸ’‹ this little page comes from ./mm, dated October 2026, and it's literally the find_vma_intersection(9) era. bye bestie, slay your VMA lookup πŸŒˆπŸŽ€

πŸ“¦ where this page comes from