svc_rdma_send_error_msg(9)
β¨ svc_rdma_send_error_msg(9) β¨
okay so bestie, welcome to the kernel API manual for svc_rdma_send_error_msg π
this one's a function in svc_rdma_send_error_msg(9) and honestly it's giving "sorry, can't parse that" energy but make it RDMA π
πΈ SYNOPSIS πΈ
void svc_rdma_send_error_msg (struct svcxprt_rdma *rdma , struct
svc_rdma_send_ctxt *sctxt , struct svc_rdma_recv_ctxt *rctxt , int
status );
like, yes, that's the whole signature, no cap β¨
π ARGUMENTS π
rdmaβ the controlling transport context, aka the main character of this whole transport situation πsctxtβ send context for the response, literally the lil envelope the reply goes in πrctxtβ receive context for the incoming bad message, aka the messy incoming vibe we're responding to πstatusβ a negative errno indicating the error that occurred, so like, the numeric reason things went left π
π DESCRIPTION π
okay so picture this: given the client-provided Read, Write, and Reply chunks, the server was not able to parse the Call or form a complete Reply π« and at that point you can't just leave the client hanging, so you return an RDMA_ERROR message so the client can retire the RPC transaction β¨ periodt.
and here's the iconic part: the caller does not have to release sctxt. it is released by Send completion, or by this function on error π
so like, don't be a hero and free it yourself, bestie, the machinery's got it π«Ά
π SEE ALSO π
Kernel file ./net/sunrpc/xprtrdma/svc_rdma_sendto.c
svc_rdma_send_ctxts_destroy(9)svc_rdma_send_ctxt_get(9)svc_rdma_send_ctxts_drain(9)svc_rdma_send_ctxt_put(9)svc_rdma_wake_send_waiters(9)svc_rdma_sq_wait(9)svc_rdma_post_send_err(9)svc_rdma_wc_send(9)svc_rdma_post_send(9)svc_rdma_encode_read_list(9)svc_rdma_encode_write_segment(9)svc_rdma_encode_write_chunk(9)svc_rdma_encode_write_list(9)svc_rdma_encode_reply_chunk(9)svc_rdma_page_dma_map(9)svc_rdma_iov_dma_map(9)svc_rdma_xb_dma_map(9)svc_rdma_xb_count_sges(9)svc_rdma_check_pull_up(9)svc_rdma_xb_linearize(9)svc_rdma_pull_up_reply_msg(9)svc_rdma_sendto(9)svc_rdma_result_payload(9)
and that's the whole page, bestie ππ¦ this lil baddie comes from ./net/sunrpc/xprtrdma, dated October 2026, and it's filed under svc_rdma_send_error_msg(9) β slay, go read the source, iykyk π
β¨
π¦ 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