author: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2020-12-01 13:08:55 +0100
committer: Jason Gunthorpe <jgg@nvidia.com> 2020-12-07 15:45:00 -0400
commit: 2988ca08ba65848f2705023b054fd8bfc0109c38
parent: c63e1c4dfc33d1bdae395ee8fbcbfad4830b12c0
Commit Summary:
Diffstat:
1 file changed, 11 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 3be1d1194a17..06a565203cfc 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -3394,6 +3394,17 @@ enum ib_pd_flags {
struct ib_pd *__ib_alloc_pd(struct ib_device *device, unsigned int flags,
const char *caller);
+/**
+ * ib_alloc_pd - Allocates an unused protection domain.
+ * @device: The device on which to allocate the protection domain.
+ * @flags: protection domain flags
+ *
+ * A protection domain object provides an association between QPs, shared
+ * receive queues, address handles, memory regions, and memory windows.
+ *
+ * Every PD has a local_dma_lkey which can be used as the lkey value for local
+ * memory operations.
+ */
#define ib_alloc_pd(device, flags) \
__ib_alloc_pd((device), (flags), KBUILD_MODNAME)