pte_next_swp_offset(9)
β¨ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms