svc_rdma_rw_ctx_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 offset
  • handle β€” RDMA tag/handle
  • length β€” total number of bytes in the bvec array
  • direction β€” 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

bye bestie 🫢 β€” source/version: ./net/sunrpc/xprtrdma Β· date: October 2026 Β· page: svc_rdma_rw_ctx_init(9) πŸ’–

πŸ“¦ where this page comes from