3 .TH IBV_ALLOC_PD 3 2006-10-31 libibverbs "Libibverbs Programmer's Manual"
5 ibv_alloc_pd, ibv_dealloc_pd \- allocate or deallocate a protection domain (PDs)
8 .B #include <infiniband/verbs.h>
10 .BI "struct ibv_pd *ibv_alloc_pd(struct ibv_context " "*context" );
12 .BI "int ibv_dealloc_pd(struct ibv_pd " "*pd" );
16 allocates a PD for the RDMA device context
24 returns a pointer to the allocated PD, or NULL if the request fails.
27 returns 0 on success, or the value of errno on failure (which indicates the failure reason).
30 may fail if any other resource is still associated with the PD being
34 .BR ibv_create_srq (3),
35 .BR ibv_create_qp (3),
36 .BR ibv_create_ah (3),
37 .BR ibv_create_ah_from_wc (3)
40 Dotan Barak <dotanb@mellanox.co.il>