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

NAME

6       ibv_alloc_pd,  ibv_dealloc_pd  -  allocate  or  deallocate a protection
7       domain (PDs)
8

SYNOPSIS

10       #include <infiniband/verbs.h>
11
12       struct ibv_pd *ibv_alloc_pd(struct ibv_context *context);
13       int ibv_dealloc_pd(struct ibv_pd *pd);
14

DESCRIPTION

16       ibv_alloc_pd() allocates a PD for the InfiniBand  device  context  con‐
17       text.
18
19       ibv_dealloc_pd() deallocates the PD pd.
20

RETURN VALUE

22       ibv_alloc_pd()  returns  a  pointer to the allocated PD, or NULL if the
23       request fails.
24
25       ibv_dealloc_pd() returns 0 on success, or the value of errno on failure
26       (which indicates the failure reason).
27

NOTES

29       ibv_dealloc_pd()  may  fail  if  any other InfiniBand resource is still
30       associated with the PD being freed.
31

SEE ALSO

33       ibv_reg_mr(3), ibv_create_srq(3),  ibv_create_qp(3),  ibv_create_ah(3),
34       ibv_create_ah_from_wc(3)
35

AUTHORS

37       Dotan Barak <dotanb@mellanox.co.il>
38
39
40
41libibverbs                        2006-10-31                   IBV_ALLOC_PD(3)
Impressum