xprt_conditional_disconnect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, this is the Kernel API Manual page for xprt_conditional_disconnect - force a transport to disconnect. that's the name, that's the job, periodt πŸ’…

✨ SYNOPSIS ✨

void xprt_conditional_disconnect (struct rpc_xprt *xprt , unsigned int
       cookie );

πŸ’… ARGUMENTS πŸ’…

  • xprt β€” the transport to disconnect, aka the main character here πŸš€
  • cookie β€” ngl the original leaves this one with no extra description, so no invented lore; it's just the cookie argument, bestie πŸͺ

🌸 DESCRIPTION 🌸

okay so here's the vibe: this attempts to break the connection if and only if cookie matches the current transport's connection cookie. the way it's giving conditional is the whole point ✨

and why? because it ensures we don't try to break the connection more than once when we need to retransmit a batch of RPC requests. no double-disconnect chaos, no cap β€” lowkey iconic behavior fr fr πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

vibe check the whole xprt family below πŸ‘‡

Kernel file: ./net/sunrpc/xprt.c

xoxo, your Unix bestie πŸ’– β€” source/version: ./net/sunrpc, date: October 2026, star of the show: xprt_conditional_disconnect(9).

πŸ“¦ where this page comes from