vma_filebacked_address(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so this is the Kernel API Manual entry for vma_filebacked_address(9), and it's literally here to find the virtual address a file-backed page range is mapped at. bestie, that's the whole vibe ✨


πŸŽ€ SYNOPSIS πŸŽ€

unsigned long vma_filebacked_address (const struct vm_area_struct *vma , pgoff_t pgoff , unsigned long nr_pages );

🌸 ARGUMENTS 🌸

  • vma β€” the vma which maps this object. it's giving β€œmain character struct” πŸ‘‘
  • pgoff β€” the page offset within its object. lowkey just the page's little coordinate πŸ¦‹
  • nr_pages β€” the number of pages to consider. like, how many pages are we checking, bestie? πŸ’…

⭐ RETURN ⭐

if any page in this range is mapped by this VMA, you get the first address where any of these pages appear. periodt. πŸ’–

otherwise? return -EFAULT. yep, that's the fallback, no cap 😭


πŸ¦‹ SEE ALSO πŸ¦‹

these are the linked besties, iykyk 🌈


and that's the page, bestie 🫢 it's sourced from ./mm, dated October 2026, and it's the vma_filebacked_address(9) manual page. slay πŸ’…βœ¨

πŸ“¦ where this page comes from