---
name: "rpma_srq_cfg_delete"
section: "3"
platform: "linux"
package: "librpma-dev"
version: "1.3.0-2+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rpma_srq_cfg_delete"
---

# rpma\_srq\_cfg\_delete(3)

delete the shared RQ configuration object

## NAME

**rpma\_srq\_cfg\_delete** - delete the shared RQ configuration object

## SYNOPSIS

```
      #include <librpma.h>
      struct rpma_srq_cfg;
      int rpma_srq_cfg_delete(struct rpma_srq_cfg **cfg_ptr);
```

## DESCRIPTION

**rpma\_srq\_cfg\_delete**() deletes the shared RQ configuration object.

## RETURN VALUE

The **rpma\_srq\_cfg\_delete**() function returns 0 on success or a negative error code on failure. **rpma\_srq\_cfg\_delete**() sets \*cfg\_ptr value to NULL on success and on failure.

## ERRORS

**rpma\_srq\_cfg\_delete**() can fail with the following error:

- •

  RPMA\_E\_INVAL - cfg\_ptr is NULL

## SEE ALSO

[**rpma\_srq\_cfg\_new**(3)](/rpma_srq_cfg_new/3.md), [**librpma**(7)](/librpma/7.md) and https://pmem.io/rpma/
