File: rdma_init_qp_attr.3.md

package info (click to toggle)
rdma-core 56.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,196 kB
  • sloc: ansic: 171,361; python: 13,724; sh: 2,774; perl: 1,465; makefile: 73
file content (54 lines) | stat: -rw-r--r-- 1,175 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
date: 2018-12-31
footer: librdmacm
header: "Librdmacm Programmer's Manual"
layout: page
license: 'Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md'
section: 3
title: RDMA_INIT_QP_ATTR
---

# NAME

rdma_init_qp_attr - Returns qp attributes of an rdma_cm_id.

# SYNOPSIS

```c
#include <rdma/rdma_cma.h>

int rdma_init_qp_attr(struct rdma_cm_id *id,
		       struct ibv_qp_attr *qp_attr,
		       int *qp_attr_mask);
```
# DESCRIPTION

**rdma_init_qp_attr()** returns qp attributes of an rdma_cm_id.

Information about qp attributes and qp attributes mask is returned through the *qp_attr* and *qp_attr_mask* parameters.

For details on the qp_attr structure, see ibv_modify_qp.

# ARGUMENTS

*id*
:    RDMA identifier.

*qp_attr*
:    A reference to a qp attributes struct containing response information.

*qp_attr_mask*
:    A reference to a qp attributes mask containing response information.

# RETURN VALUE

**rdma_init_qp_attr()** returns 0 on success, or -1 on error.  If an error occurs, errno will be set to indicate the failure reason.

# SEE ALSO

**rdma_cm**(7),
**ibv_modify_qp**(3)

# AUTHOR

Danit Goldberg <danitg@mellanox.com>