---
name: "rpma_conn_cfg_set_sq_size"
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_conn_cfg_set_sq_size"
---

# rpma\_conn\_cfg\_set\_sq\_size(3)

set SQ size for the connection

## NAME

**rpma\_conn\_cfg\_set\_sq\_size** - set SQ size for the connection

## SYNOPSIS

```
      #include <librpma.h>
      struct rpma_conn_cfg;
      int rpma_conn_cfg_set_sq_size(struct rpma_conn_cfg *cfg, uint32_t sq_size);
```

## DESCRIPTION

**rpma\_conn\_cfg\_set\_sq\_size**() sets the SQ size for the connection. If this function is not called, the sq\_size has the default value (10) set by [**rpma\_conn\_cfg\_new**(3)](/rpma_conn_cfg_new/3.md).

## RETURN VALUE

The **rpma\_conn\_cfg\_set\_sq\_size**() function returns 0 on success or a negative error code on failure.

## ERRORS

**rpma\_conn\_cfg\_set\_sq\_size**() can fail with the following error:

- •

  RPMA\_E\_INVAL - cfg is NULL

## SEE ALSO

[**rpma\_conn\_cfg\_new**(3)](/rpma_conn_cfg_new/3.md), [**rpma\_conn\_cfg\_get\_sq\_size**(3)](/rpma_conn_cfg_get_sq_size/3.md), [**librpma**(7)](/librpma/7.md) and https://pmem.io/rpma/
