rdma_rw_ctx...oy_signature(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 her
  • qp β€” the queue pair to operate on 🧚 your qp, your connection's whole vibe
  • port_num β€” the port num to which the connection is bound ⭐ gotta know which port we're on
  • sg β€” the scatterlist that was used for the READ/WRITE 🌸 yep, the same one, keep it handy
  • sg_cnt β€” number of entries in sg πŸ”₯ count 'em, don't guess
  • prot_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 one
  • prot_sg_cnt β€” number of entries in prot_sg πŸ’œ again: count them, exactly
  • dir β€” DMA_TO_DEVICE for RDMA WRITE, DMA_FROM_DEVICE for 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 πŸ’–


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