swap_update_readahead(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so welcome to the Kernel API Manual page for swap_update_readahead(9), bestie! Here's the actual lore: swap_update_readahead β€” update the readahead statistics of VMA or globally. That's the whole vibe. πŸ¦‹

🫢 SYNOPSIS 🫢

The signature is literally this, character for character:

void swap_update_readahead (struct folio *folio , struct vm_area_struct *vma , unsigned long addr );

πŸ’… ARGUMENTS πŸ’…

  • folio β€” the swap cache folio that just got hit. Like, this is the folio that just scored the hit, main character energy. ✨
  • vma β€” the VMA that should be updated. It can be NULL for a global update, so if it's null it's giving global, not broken. πŸ’œ
  • addr β€” the addr that triggered the swapin. If vma is NULL, this one is ignored entirely. πŸ™ˆ

🌈 SEE ALSO 🌈

The cross-refs are living in Kernel file ./mm/swap_state.c, and here is every single one, no cap:


that's the whole page, bestie 🫢 β€” source/version: ./mm, date: October 2026. mwah πŸ’‹

πŸ“¦ where this page comes from