---
name: "ibv_get_srq_num"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/ibv_get_srq_num"
---

# ibv\_get\_srq\_num(3)

return srq number associated with the given shared receive queue (SRQ)

## NAME

ibv\_get\_srq\_num  - return srq number associated with the given shared receive queue (SRQ)

## SYNOPSIS

```
#include <infiniband/verbs.h>

int ibv_get_srq_num(struct ibv_srq *srq,
                    uint32_t *srq_num);
```

## DESCRIPTION

**ibv\_get\_srq\_num()** return srq number associated with the given shared receive queue The argument *srq* is an ibv\_srq struct, as defined in \<infiniband/verbs.h\>. *srq\_num* is an output parameter that holds the returned srq number.

```

```

## RETURN VALUE

**ibv\_get\_srq\_num()** returns 0 on success, or the value of errno on failure (which indicates the failure reason).

## SEE ALSO

[**ibv\_alloc\_pd**(3)](/ibv_alloc_pd/3.md), [**ibv\_modify\_srq**(3)](/ibv_modify_srq/3.md), [**ibv\_create\_srq\_ex**(3)](/ibv_create_srq_ex/3.md)

## AUTHORS

- Yishai Hadas \<yishaih@mellanox.com\>
