vma_filebacked_address(9)
π 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 π¦
- Kernel file
./mm/internal.h folio_pte_batch_flags(9)pte_move_swp_offset(9)pte_next_swp_offset(9)swap_pte_batch(9)sync_with_folio_pmd_zap(9)folio_evictable(9)vma_anon_address(9)
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
- 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