svc_rdma_rw_ctx_init(9)
okay bestie, welcome to the svc_rdma_rw_ctx_init(9) page from the Kernel API Manual β¨ this one is short but itβs literally the βPrepare a R/W context for I/Oβ moment, so letβs get into it π
π NAME π
svc_rdma_rw_ctx_init β Prepare a R/W context for I/O π«Ά
πΈ SYNOPSIS πΈ
int svc_rdma_rw_ctx_init (struct svcxprt_rdma *rdma , struct
svc_rdma_rw_ctxt *ctxt , u64 offset , u32 handle , unsigned int length ,
enum dma_data_direction direction );
β¨ ARGUMENTS β¨
Hereβs the whole crew β every single one matters:
rdmaβ controlling transport instance πctxtβ R/W context to prepare πoffsetβ RDMA offsethandleβ RDMA tag/handlelengthβ total number of bytes in the bvec arraydirectionβ I/O direction
π₯ DESCRIPTION π₯
The return value is the whole plot: on success, it returns the number of WQEs that will be needed on the workqueue, or a negative errno π
π¦ SEE ALSO π¦
Kernel file: ./net/sunrpc/xprtrdma/svc_rdma_rw.c
svc_rdma_destroy_rw_ctxts(9)svc_rdma_cc_init(9)svc_rdma_cc_release(9)svc_rdma_write_chunk_release(9)svc_rdma_reply_chunk_release(9)svc_rdma_reply_done(9)svc_rdma_write_done(9)svc_rdma_wc_read_done(9)svc_rdma_iov_write(9)svc_rdma_pages_write(9)svc_rdma_xb_write(9)svc_rdma_prepare_write_list(9)svc_rdma_prepare_reply_chunk(9)svc_rdma_build_read_segment(9)svc_rdma_build_read_chunk(9)svc_rdma_copy_inline_range(9)svc_rdma_read_multiple_chunks(9)svc_rdma_read_data_item(9)svc_rdma_read_chunk_range(9)svc_rdma_read_call_chunk(9)svc_rdma_read_special(9)svc_rdma_process_read_list(9)
bye bestie π«Ά β source/version: ./net/sunrpc/xprtrdma Β· date: October 2026 Β· page: svc_rdma_rw_ctx_init(9) π
π¦ 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