linear_page_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ linear_page_index(9) ✨

okay so bestie, this one is a Kernel API Manual page and honestly it's giving "small function, big feelings" πŸŽ€ it lives in linear_page_index(9) land and it is SO much chiller than it looks. let's get into it πŸ’…


🌸 NAME 🌸

linear_page_index β€” determines the absolute page offset of @address within @vma. periodt ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

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

like, that's the whole signature. no cap. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • vma β€” the VMA where address is hanging out. it's the neighborhood, basically 🏑
  • address β€” the address whose absolute page offset you're asking for. yeah, that one. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

okay so the actual description is short and iconic: for the tea on what the page offset even means, go read the comment for vma_start_pgoff. that's it. that's the whole vibe. it's giving "read the docs, i'm just the pointer" 😭✨


🌈 RETURN 🌈

the absolute page offset of address within vma. slay, that's the answer, that's the whole return value πŸ’«


πŸ‘‘ SEE ALSO πŸ‘‘

so the Kernel file ./include/linux/pagemap.h crew is HUGE and we are literally obsessed with all of them πŸ’œ here's the full squad, no one gets left out:

filemap_set_wb_err(9), filemap_check_wb_err(9), filemap_sample_wb_err(9), file_sample_sb_err(9), mapping_set_error(9), mapping_set_large_folios(9), mapping_align_index(9), mapping_pmd_folio_support(9), folio_flush_mapping(9), folio_inode(9), folio_attach_private(9), folio_change_private(9), folio_detach_private(9), fgf_t(9), fgf_set_order(9), write_begin_get_folio(9), filemap_get_folio(9), filemap_lock_folio(9), filemap_grab_folio(9), find_get_page(9), find_lock_page(9), find_or_create_page(9), grab_cache_page_nowait(9), folio_next_index(9), folio_next_pos(9), folio_file_page(9), folio_contains(9), page_pgoff(9), folio_pos(9), linear_page_delta(9), linear_anon_page_index(9), folio_trylock(9), folio_lock(9), lock_page(9), folio_lock_killable(9), filemap_range_needs_writeback(9), struct readahead_control(9), page_cache_sync_readahead(9), page_cache_async_readahead(9), readahead_folio(9), readahead_pos(9), readahead_length(9), readahead_index(9), readahead_count(9), readahead_batch_length(9), folio_mkwrite_check_truncate(9), i_blocks_per_folio(9).

like. forty-something friends. main character energy for sure πŸ”₯


bestie heads up: this page shows up under ./include/linux because that's where the header lives β€” go touch grass in the source tree if you need more 🧚

and that's the whole page!! shoutout to the ./include/linux source and the October 2026 date stamp at the bottom, mwah πŸ’‹ bye bestie, go get that page offset πŸ“πŸ’œ

πŸ“¦ where this page comes from