pte_next_swp_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is the Kernel API Manual page for pte_next_swp_offset(9), and it is literally about one tiny glow-up for a swap pte.

pte_next_swp_offset β€” increment the swap entry offset field of a swap pte. that's the whole assignment, bestie. πŸ’…

πŸ“œ SYNOPSIS πŸ“œ

the signature is exactly this, no edits:

pte_t pte_next_swp_offset (pte_t pte );

🫢 ARGUMENTS 🫢

  • pte β€” the initial pte state; it must be a swap entry. no exceptions, no cap.

🌸 DESCRIPTION 🌸

so what it does is: increment the swap offset, while maintaining all other fields β€” including swap type, and any swp pte bits. then the resulting pte is returned. that's the vibe: offset goes up, everything else stays put. ✨

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./mm/internal.h plus the whole squad: folio_pte_batch_flags(9), pte_move_swp_offset(9), swap_pte_batch(9), sync_with_folio_pmd_zap(9), folio_evictable(9), vma_filebacked_address(9), vma_anon_address(9). iykyk πŸ¦‹

xoxo, sending this from ./mm, October 2026 πŸ’–

πŸ“¦ where this page comes from