rdma_rw_ctx...oy_signature(9)
π rdma_rw_ctx_destroy_signature(9) β the cleanup era β¨
okay so bestie, welcome to the Kernel API Manual π this is the page for rdma_rw_ctx_destroy_signature, and yes the header gets cut off in the terminal as rdma_rw_ctx...oy_signature(9) β that's just the man page tool doing its little truncation thing, the real name is the whole long beautiful thing up there π
πΈ NAME πΈ
rdma_rw_ctx_destroy_signature β the one that releases all resources allocated by rdma_rw_ctx_signature_init π«Ά
like, it's the reverse function. init's cleanup bestie. the closing credits after the movie π
β¨ SYNOPSIS β¨
void rdma_rw_ctx_destroy_signature (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 , enum dma_data_direction dir );
returns nothing (void), takes eight whole arguments, and she is thriving π
eight of them, no cap, every single one matters.
π¦ ARGUMENTS π¦
ctxβ the context to release π this is the main character you're here to free, okay, don't forget herqpβ the queue pair to operate on π§ your qp, your connection's whole vibeport_numβ the port num to which the connection is bound β gotta know which port we're onsgβ the scatterlist that was used for the READ/WRITE πΈ yep, the same one, keep it handysg_cntβ number of entries insgπ₯ count 'em, don't guessprot_sgβ the scatterlist that was used for the READ/WRITE of the PI π yes, the PI one, this is the protection-information scatterlist, separate from the plain oneprot_sg_cntβ number of entries inprot_sgπ again: count them, exactlydirβDMA_TO_DEVICEfor RDMA WRITE,DMA_FROM_DEVICEfor RDMA READ π this one is directional, so match whatever you did on the way in β write goes to the device, read comes from it, periodt
heads up bestie β every argument here has to line up with what you passed to rdma_rw_ctx_signature_init. it's a teardown, not a fresh start, so nothing gets invented on the way out π
π SEE ALSO π
the whole friend group lives in the kernel file ./drivers/infiniband/core/rw.c β go say hi π
rdma_rw_ctx_init(9)rdma_rw_ctx_init_bvec(9)rdma_rw_ctx_signature_init(9)rdma_rw_ctx_wrs(9)rdma_rw_ctx_post(9)rdma_rw_ctx_destroy(9)rdma_rw_ctx_destroy_bvec(9)rdma_rw_mr_factor(9)rdma_rw_max_send_wr(9)
okay that's the whole page, mwah π this little icon comes to you from the source ./drivers/infiniband/core, dated October 2026, and the page name is rdma_rw_ctx...oy_signature(9) β go forth and free your contexts responsibly, bestie ππ
π
π¦ 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