xs_disable_swap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xs_disable_swap(9) β€” from the Kernel API Manual ✨

okay bestie, gather round, because we're talking about a little function from the Kernel API Manual and honestly it's giving "quiet but essential" energy πŸŽ€


🌸 NAME 🌸

xs_disable_swap β€” the one where you untag this transport as being used for swap πŸ’«


✨ SYNOPSIS ✨

void xs_disable_swap (struct rpc_xprt *xprt );

(yes, that's the whole thing β€” a void, no return value, no drama, no notes πŸ’…)


πŸ¦‹ ARGUMENTS πŸ¦‹

  • xprt β€” the transport to tag, bestie. that's the one we're working with 🫢

πŸ”₯ DESCRIPTION πŸ”₯

so here's the vibe: you're dropping a "swapper" reference to this xprt on behalf of the rpc_clnt. that's the whole job. lowkey simple, highkey important ✨

and then β€” the main character moment β€” if the swapper refcount goes all the way to 0, you untag the socket as a memalloc socket. that's it. that's the function. clean, iconic, no cap πŸ‘‘

ngl this is the mirror twin of xs_enable_swap(9) β€” one tags, one untags. balance. harmony. the way that it should be 😭

🧚 SEE ALSO 🧚

everything in the ./net/sunrpc/xprtsock.c cinematic universe, fr fr πŸ’–

like, all 34 of them, bestie β€” I counted, and no I'm not okay about it πŸ˜­πŸ’€


and that's the page!! πŸŽ€ sending u off with so much love from ./net/sunrpc, dated October 2026 β€” go forth and untag those transports, you absolute icon πŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from