xprt_rdma_inject_disconnect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xprt_rdma_inject_disconnect(9) β€” like, the kernel API manual page, bestie πŸŽ€

okay so this is a page straight out of the Kernel API Manual, and honestly? it's a whole vibe. it's short, it's spicy, it messes with your network connection on purpose. let's get into it ✨


🌸 NAME 🌸

xprt_rdma_inject_disconnect β€” inject a connection fault πŸ’€

yes. that's the whole job. she injects. a fault. into a connection. iconic, honestly.


πŸ¦‹ SYNOPSIS πŸ¦‹

void xprt_rdma_inject_disconnect (struct rpc_xprt *xprt );

that's it. that's the whole signature. void in, void out, one pointer in between. slay.


πŸ’– ARGUMENTS πŸ’–

  • xprt β€” the transport context 🫢. that's the thing you're about to mess with.

✨ DESCRIPTION ✨

so here's the tea, bestie πŸ“: if xprt is connected, this function disconnects it β€” not because anything's actually wrong, but to simulate spurious connection loss. it's fake-breaking things on purpose to see what happens. chaos as a service, fr fr πŸ”₯

⚠️ okay but listen: the caller must hold xprt's send lock. no cap. that lock is what keeps the data structures and hardware resources stable while the rdma_disconnect call is happening. skip the lock and you're just out here living dangerously πŸ’€ don't do that to yourself.

πŸ‘‘ SEE ALSO πŸ‘‘

like a whole friend group of functions. the xprt_rdma_* girlies πŸ§šπŸ’…


that's the page!! brought to you by the fine folks over at ./net/sunrpc/xprtrdma, dated October 2026, and yeah β€” xprt_rdma_inject_disconnect(9) is the main character here πŸ‘‘πŸŒˆ bye bestie, go hold that send lock πŸ’–

πŸ“¦ where this page comes from