1IBV_OPEN_QP(3)          Libibverbs Programmer's Manual          IBV_OPEN_QP(3)
2
3
4

NAME

6       ibv_open_qp - open a shareable queue pair (QP)
7

SYNOPSIS

9       #include <infiniband/verbs.h>
10
11       struct ibv_qp *ibv_open_qp(struct ibv_context *context,
12                                  struct ibv_qp_open_attr *qp_open_attr);
13

DESCRIPTION

15       ibv_open_qp()  opens  an  existing  queue pair (QP) associated with the
16       extended protection domain  xrcd.   The  argument  qp_open_attr  is  an
17       ibv_qp_open_attr struct, as defined in <infiniband/verbs.h>.
18
19       struct ibv_qp_open_attr {
20               uint32_t          comp_mask;  /* Identifies valid fields */
21               uint32_t          qp_num;     /* QP number */
22               struct            *ibv_xrcd;  /* XRC domain */
23               void             *qp_context; /* User defined opaque value */
24               enum ibv_qp_type  qp_type;    /* QP transport service type */
25
26       ibv_destroy_qp() closes the opened QP and destroys the underlying QP if
27       it has no other references.  qp.
28

RETURN VALUE

30       ibv_open_qp() returns a pointer to  the  opened  QP,  or  NULL  if  the
31       request fails.  Check the QP number (qp_num) in the returned QP.
32

NOTES

34       ibv_open_qp()  will  fail  if  a it is asked to open a QP that does not
35       exist within the xrcd with the specified qp_num and qp_type.
36

SEE ALSO

38       ibv_alloc_pd(3),   ibv_create_qp(3),   ibv_create_qp_ex(3),    ibv_mod‐
39       ify_qp(3), ibv_query_qp(3)
40

AUTHORS

42       Sean Hefty <sean.hefty@intel.com>
43
44
45
46libibverbs                        2011-08-12                    IBV_OPEN_QP(3)
Impressum