rdma_rw_ctx_signature_init(9)
π rdma_rw_ctx_signature_init(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one's about setting up a RW context with signature offload, and honestly? it's giving β¨niche but powerfulβ¨. let's get into it π«Ά
πΈ NAME πΈ
rdma_rw_ctx_signature_init β initialize a RW context with signature offload π
π SYNOPSIS π
int rdma_rw_ctx_signature_init (struct rdma_rw_ctx *ctx , struct ib_qp *qp , u32 port_num , struct scatterlist *sg , u32 sg_cnt , struct scatterlist *prot_sg , u32 prot_sg_cnt , struct ib_sig_attrs *sig_attrs , u64 remote_addr , u32 rkey , enum dma_data_direction dir );
bestie look at that signature. eleven arguments. she's thriving and she knows it π
π¦ ARGUMENTS π¦
so here's the whole lineup, no cap:
ctxβ the context you're initializing. she's the main character πqpβ the queue pair you're operating on πport_numβ the port num that this connection is bound to β¨sgβ the scatterlist you READ/WRITE from/to π₯sg_cntβ how many entries are insgπ’prot_sgβ the scatterlist you READ/WRITE protection information from/to π‘οΈprot_sg_cntβ how many entries are inprot_sgπ’sig_attrsβ the signature offloading algorithms π§remote_addrβ the remote address to read/write, and lowkey this one is relative torkeyso don't forget that πrkeyβ the remote key you're operating on πdirβ okay so this one's specific: it'sDMA_TO_DEVICEfor RDMA WRITE, andDMA_FROM_DEVICEfor RDMA READ π don't mix them up bestie
π DESCRIPTION π
so like, what does she actually do? if it's successful, this returns the number of WQEs that will be needed on the workqueue π₯. and if it's not successful? she returns a negative error code π. that's the whole vibe. that's the tea. periodt.
π SEE ALSO π
Kernel file ./drivers/infiniband/core/rw.c, plus the whole friend group π«Ά:
rdma_rw_ctx_init(9)rdma_rw_ctx_init_bvec(9)rdma_rw_ctx_wrs(9)rdma_rw_ctx_post(9)rdma_rw_ctx_destroy(9)rdma_rw_ctx_destroy_bvec(9)rdma_rw_ctx_destroy_signature(9)rdma_rw_mr_factor(9)rdma_rw_max_send_wr(9)
and that's the whole page bestie!! πΈ this icon lives in ./drivers/infiniband/core, dated October 2026 β ily, go off, read your scatterlists responsibly πβ¨π
π¦ 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