1IBV_ALLOC_PD(3) Libibverbs Programmer's Manual IBV_ALLOC_PD(3)
2
3
4
6 ibv_alloc_pd, ibv_dealloc_pd - allocate or deallocate a protection
7 domain (PDs)
8
10 #include <infiniband/verbs.h>
11
12 struct ibv_pd *ibv_alloc_pd(struct ibv_context *context);
13
14 int ibv_dealloc_pd(struct ibv_pd *pd);
15
17 ibv_alloc_pd() allocates a PD for the RDMA device context context.
18
19 ibv_dealloc_pd() deallocates the PD pd.
20
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
29 ibv_dealloc_pd() may fail if any other resource is still associated
30 with the PD being freed.
31
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
37 Dotan Barak <dotanba@gmail.com>
38
39
40
41libibverbs 2006-10-31 IBV_ALLOC_PD(3)