Debian Codegraph @

libibverbs/man/ibv_alloc_pd.3

raw
1 .\" -*- nroff -*-
2 .\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md
3 .\"
4 .TH IBV_ALLOC_PD 3 2006-10-31 libibverbs "Libibverbs Programmer's Manual"
5 .SH "NAME"
6 ibv_alloc_pd, ibv_dealloc_pd \- allocate or deallocate a protection domain (PDs)
7 .SH "SYNOPSIS"
8 .nf
9 .B #include <infiniband/verbs.h>
10 .sp
11 .BI "struct ibv_pd *ibv_alloc_pd(struct ibv_context " "*context" );
12 .sp
13 .BI "int ibv_dealloc_pd(struct ibv_pd " "*pd" );
14 .fi
15 .SH "DESCRIPTION"
16 .B ibv_alloc_pd()
17 allocates a PD for the RDMA device context
18 .I context\fR.
19 .PP
20 .B ibv_dealloc_pd()
21 deallocates the PD
22 .I pd\fR.
23 .SH "RETURN VALUE"
24 .B ibv_alloc_pd()
25 returns a pointer to the allocated PD, or NULL if the request fails.
26 .PP
27 .B ibv_dealloc_pd()
28 returns 0 on success, or the value of errno on failure (which indicates the failure reason).
29 .SH "NOTES"
30 .B ibv_dealloc_pd()
31 may fail if any other resource is still associated with the PD being
32 freed.
33 .SH "SEE ALSO"
34 .BR ibv_reg_mr (3),
35 .BR ibv_create_srq (3),
36 .BR ibv_create_qp (3),
37 .BR ibv_create_ah (3),
38 .BR ibv_create_ah_from_wc (3)
39 .SH "AUTHORS"
40 .TP
41 Dotan Barak <[email protected]>