folio_file_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… folio_file_page β€” a kernel API manual page, bestie edition πŸŽ€

okay so this is folio_file_page(9), and it lives in the Kernel API Manual. it's short, it's sweet, and it slays at exactly one job: handing you the page that belongs to a specific index inside a folio. let's go ✨


🌸 NAME 🌸

folio_file_page β€” literally just: the page for a particular index. that's the whole vibe. 🫢


✨ SYNOPSIS ✨

struct page * folio_file_page (struct folio *folio , pgoff_t index );

like, you give it a folio and an index, and it gives you back a struct page *. no cap. πŸ’«


πŸ¦‹ ARGUMENTS πŸ¦‹

  • folio β€” the folio that contains this index. she's the container, the main character, the one holding all the pages together πŸ‘‘
  • index β€” the index we want to look up. this is the lil coordinate you're asking about πŸ”

πŸ’– DESCRIPTION πŸ’–

sometimes, after you've looked up a folio in the page cache, you still need to get the specific page for an index β€” like, for example, during a page fault. that's the whole situation this function exists for. it's giving "i have the group, now give me the individual bestie." πŸ™ˆβœ¨


πŸ”₯ RETURN πŸ”₯

it returns the page containing the file data for this index. that's it, that's the return value, and she ate πŸ’…


🌈 SEE ALSO 🌈

the kernel file ./include/linux/pagemap.h, plus this absolute stack of related entries β€” i'm listing every single one because we don't do crumbs here πŸ“

iykyk, that's a lot of folio lore πŸ’€ but go read them, they're all right there 🧚


ok that's the whole page!! tiny page, huge energy πŸ’œ

sign-off time: this one's sourced from ./include/linux and dated October 2026. periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from