swap_cluster_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… swap_cluster_lock(9) β€” Kernel API Manual ✨

Okay bestie, welcome to the swap_cluster_lock(9) page. It's giving kernel API realness.

πŸ’– NAME πŸ’–

swap_cluster_lock β€” locks the swap cluster of a given offset and returns it to you. Literally lock it and hand it back. Periodt.

πŸŽ€ SYNOPSIS πŸŽ€

       struct swap_cluster_info * swap_cluster_lock (struct swap_info_struct
       *si , unsigned long offset );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • si β€” the swap device the cluster belongs to. That's its home base, no cap.
  • offset β€” the swap entry offset, pointing to a valid slot. Like the exact spot in the swap device, iykyk.

🌸 CONTEXT 🌸

Context check, bestie: the caller must make sure offset is in the valid range, and must protect the swap device with a reference count or locks. That's the vibe, and it is on you. 🫢

πŸ”₯ SEE ALSO πŸ”₯


β€” sourced from ./mm, dated October 2026, swap_cluster_lock(9) signing off πŸ’…

πŸ“¦ where this page comes from