vma_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so this is vma_lookup from the 9 Kernel API Manual, and it does exactly what it says on the tin: find a VMA at a specific address. That's the whole assignment, bestie. πŸ’–

✨ SYNOPSIS ✨

struct vm_area_struct * vma_lookup (struct mm_struct *mm , unsigned long
addr );

πŸŽ€ ARGUMENTS πŸŽ€

  • mm β€” the process address space. This is the mm situation you're working with. πŸ’…
  • addr β€” the user address. The specific address you're asking about. 🎯

πŸ’« RETURN πŸ’«

It returns the vm_area_struct at the given address, or NULL otherwise. So if there's a VMA there, slay; if not, NULL is the answer. 🫢

πŸ”— SEE ALSO πŸ”—

Kernel file: ./include/linux/mm.h 🌈


byeee πŸ’… this page's source is ./include/linux, dated October 2026, and yes bestie it's still vma_lookup(9). 🫢✨

πŸ“¦ where this page comes from