linear_page_delta(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, welcome to linear_page_delta(9) from the Kernel API Manual β€” it's literally here to determine the relative page offset of @address within @vma, and it's giving helpful little helper energy. No cap. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

pgoff_t linear_page_delta (const struct vm_area_struct *vma , const
       unsigned long address );

πŸŽ€ ARGUMENTS πŸŽ€

  • vma β€” the VMA where address resides, living its best life. πŸ’«
  • address β€” the address whose relative page offset is required, periodt. ✨

πŸ’– DESCRIPTION πŸ’–

Okay so here's the tea: the result is identical for both file-backed and anonymous mappings, and it simply determines how many pages address lies from vma->vm_start. That's the whole vibe. πŸ¦‹


🌸 RETURN 🌸

The number of pages address is offset by within vma, bestie. That's the return value. πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/pagemap.h is the home base, and here's the whole iconic SEE ALSO squad:


xoxo πŸ’– β€” this page came from the ./include/linux source/version, dated October 2026. linear_page_delta(9) out! πŸŽ€βœ¨

πŸ“¦ where this page comes from