pte_move_swp_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pte_move_swp_offset(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so we're deep in the kernel docs today and this one is literally called pte_move_swp_offset β€” yes it's a mouthful, no I didn't name it, but honestly? she's iconic for what she does.


✨ NAME ✨

pte_move_swp_offset β€” moves the swap entry offset field of a swap pte forward or backward by delta. that's the whole vibe. sliding the offset around. no cap. πŸ¦‹


🌸 SYNOPSIS 🌸

pte_t pte_move_swp_offset (pte_t pte , long delta );

like any good function she takes two things and gives you a pte_t back. periodt. πŸ’–


🫢 ARGUMENTS 🫢

  • pte β€” the initial pte state, and listen, it must be a swap entry. not optional, not a suggestion, it's giving "read the room". πŸ™ˆ
  • delta β€” the direction and the offset we're moving, both in one cute little long. forward if delta is positive, backward if delta is negative. yes she's doing double duty and she's slaying it. ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

so what actually happens: she moves the swap offset, but β€” and this is the important part, bestie, don't skip it β€” she maintains all other fields, including the swap type and any swp pte bits. everything else stays exactly where it was. untouched. unbothered. main character energy for the offset only. πŸ’…

and then? the resulting pte is returned. that's it, that's the whole function, go forth and slide those offsets. 🧚


πŸ”₯ SEE ALSO πŸ”₯

sibling links, the whole friend group, we love a supportive group chat:


and that's the page!! πŸ’œ brought to you straight out of ./mm, dated October 2026, signed off with pte_move_swp_offset(9) β€” love her, mean it, bye bestie!! πŸŒˆπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from