folio_file_pfn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ folio_file_pfn β€” Kernel API Manual, bestie edition ✨

okay so welcome to the Kernel API Manual, page folio_file_pfn(9). This one is short, sweet, and fully main-character β€” let’s get into it πŸ’…


🌸 NAME 🌸

folio_file_pfn β€” like folio_file_page, but return a pfn. no cap, that’s the whole name vibe πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

kvm_pfn_t folio_file_pfn (struct folio *folio , pgoff_t index );

the way this signature just sits there being all kvm_pfn_t and iconic β€” we love to see it πŸŽ€

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio which contains this index. literally the folio holding the index you’re asking about, bestie.
  • index β€” the index we want to look up. the specific one you’re hunting for πŸ‘€

πŸ”₯ RETURN πŸ”₯

The pfn for this index. that’s the return value, periodt β€” it gives you back the pfn for this index and that’s it πŸ’–

🌈 SEE ALSO 🌈

  • Kernel file ./virt/kvm/guest_memfd.c β€” go peek if you want the neighborhood lore, iykyk 🫢

kisses and sparkles from the ./virt/kvm source corner, October 2026 edition, page folio_file_pfn(9) β€” bye bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from