rpma_srq_delete(3)
rpma_srq_delete π delete the shared RQ object
okay so bestie, we're in the RPMA Programmer's Manual today (that's the librpma girlies, the remote persistent memory crew π§) and the page we're reading is literally all about saying bye-bye to one little thing. slay.
β¨ NAME β¨
rpma_srq_delete β delete the shared RQ object π«Ά
β¨ SYNOPSIS β¨
#include <librpma.h>
struct rpma_srq;
int rpma_conn_req_delete(struct rpma_srq **srq_ptr);
yeah, that's the whole thing. copy it character for character, no cap. π
β¨ DESCRIPTION β¨
rpma_srq_delete() deletes the shared RQ object. that's it, that's the vibe. it's the goodbye function, the "we're done here" moment, the closing credits πΈ
β¨ RETURN VALUE β¨
so here's the tea π β rpma_srq_delete() returns 0 when it works out, or a negative error code when it does not.
and the detail that lowkey matters most: on success and on failure, rpma_srq_delete() sets the *srq_ptr value to NULL. so either way, that pointer is getting zeroed out. periodt. π
β¨ ERRORS β¨
rpma_srq_delete() can fail with the following errors, bestie, and there are exactly two so no surprises:
RPMA_E_INVALβsrq_ptrisNULLπ like, there's nothing there to delete, girl.RPMA_E_PROVIDERβibv_destroy_cq(3),ibv_destroy_comp_channel(3), oribv_destroy_srq(3)failed π the provider layer said no.
β¨ SEE ALSO β¨
rpma_srq_new(3)β the make-it counterpart, the origin story βrpma_srq_get_rcq(3)β grab the receive CQ πlibrpma(7)β the whole universe π- <https://pmem.io/rpma/> β the website, go lurk π
this page is brought to you by RPMA and dated 01 April 2024, and yes, it's still filed under the name rpma_srq_delete(3) π¦ k byeeee, go free that shared RQ π¦
π¦ where this page comes from
- ubuntu noble: librpma-dev 1.3.0-2build2 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms