hugetlb_linear_page_index(9)
β¨ hugetlb_linear_page_index π
okay so bestie, quick vibe check: this is a page from the Kernel API Manual π and it's about hugetlb_linear_page_index β literally linear_page_index() but in hugetlb page size granularity. that's the whole personality. that's the whole function. iykyk π¦
β¨ NAME β¨
hugetlb_linear_page_index β it's linear_page_index() but in hugetlb page size granularity, no cap π«Ά
β¨ SYNOPSIS β¨
pgoff_t hugetlb_linear_page_index (struct vm_area_struct *vma , unsigned
long address );
look at her. immaculate signature. not a single character out of place π β¨
β¨ ARGUMENTS β¨
vmaβ the hugetlb VMA π like, the actual virtual memory area we're talking about hereaddressβ the virtual address within the VMA π the one you're asking about, bestie
β¨ RETURN β¨
it hands you back the page offset within the mapping in huge page units β that's the return value. pgoff_t. slay.
π SEE ALSO π
- Kernel file
./include/linux/hugetlb.hβ go read it, fr fr ππ¦
π lowkey reminder: this whole page is tiny but every single word of it matters, so don't skip the granularity part. it's giving "small but iconic."
and that's the whole page, bestie!! π signed off from ./include/linux with a big fat October 2026 date stamp on it β periodt. ππΈ
π¦ 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