xs_enable_swap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xs_enable_swap(9) β€” like, the Kernel API Manual bestie ✨

okay so welcome to the xs_enable_swap(9) page, from your fave Kernel API Manual, no cap 🫢 this one is short and sweet and honestly kind of a vibe.


🌸 NAME 🌸

xs_enable_swap β€” tag this transport as being used for swap πŸ’–

✨ SYNOPSIS ✨

int xs_enable_swap (struct rpc_xprt *xprt );

πŸŽ€ ARGUMENTS πŸŽ€

  • xprt β€” the transport we're tagging, bestie. that's it, that's the whole arg πŸ¦‹

πŸ’… DESCRIPTION πŸ’…

So here's the tea β˜• β€” this function takes a reference to this transport on behalf of the rpc_clnt, and optionally marks it for swapping if it wasn't already. like, if it was already marked, cool, no need to double up πŸ’€ otherwise it gets the swap label. slay.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/sunrpc/xprtsock.c β€” and literally the whole friend group:


and that's the whole page, babes πŸ’œ this one lives in ./net/sunrpc and it's dated October 2026 β€” iconic, historic, periodt. go read the others, iykyk πŸ‘‘βœ¨

πŸ“¦ where this page comes from