xprt_rdma_inject_disconnect(9)
π 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 holdxprt's send lock. no cap. that lock is what keeps the data structures and hardware resources stable while therdma_disconnectcall is happening. skip the lock and you're just out here living dangerously π don't do that to yourself.
π SEE ALSO π
- the kernel file
./net/sunrpc/xprtrdma/transport.cβ go read the source, iykyk π xprt_rdma_connect_worker(9)xprt_rdma_destroy(9)xprt_setup_rdma(9)xprt_rdma_close(9)xprt_rdma_set_port(9)xprt_rdma_timer(9)xprt_rdma_set_connect_timeout(9)xprt_rdma_connect(9)xprt_rdma_alloc_slot(9)xprt_rdma_free_slot(9)xprt_rdma_allocate(9)xprt_rdma_free(9)xprt_rdma_send_request(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms