diff options
author | Dennis Dalessandro <dennis.dalessandro@intel.com> | 2016-02-14 12:10:29 -0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-10 20:38:08 -0500 |
commit | 90793f7179478df19ac4b2244cfd9764b28e4b38 (patch) | |
tree | cdbad7af7b4899bade80236891d381e8fd310c47 /drivers/infiniband/sw/rdmavt/pd.c | |
parent | staging/rdma/hfi1: Put QPs into error state after SL->SC table changes (diff) | |
download | linux-dev-90793f7179478df19ac4b2244cfd9764b28e4b38.tar.xz linux-dev-90793f7179478df19ac4b2244cfd9764b28e4b38.zip |
IB/rdmavt: Clean up comments and add more documentation
Add, remove, and otherwise clean up existing comments that are leftover
from the initial code postings of rdmavt. Many of the comments were added
to provide an idea on the direction we were thinking of going. Now that the
design is solidified make a pass over and clean everything up. Also add
details where lacking.
Ensure all non static functions have nano comments.
Reviewed-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/sw/rdmavt/pd.c')
-rw-r--r-- | drivers/infiniband/sw/rdmavt/pd.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/infiniband/sw/rdmavt/pd.c b/drivers/infiniband/sw/rdmavt/pd.c index 62fee44be3a3..d1292f324c67 100644 --- a/drivers/infiniband/sw/rdmavt/pd.c +++ b/drivers/infiniband/sw/rdmavt/pd.c @@ -48,6 +48,16 @@ #include <linux/slab.h> #include "pd.h" +/** + * rvt_alloc_pd - allocate a protection domain + * @ibdev: ib device + * @context: optional user context + * @udata: optional user data + * + * Allocate and keep track of a PD. + * + * Return: 0 on success + */ struct ib_pd *rvt_alloc_pd(struct ib_device *ibdev, struct ib_ucontext *context, struct ib_udata *udata) @@ -88,6 +98,12 @@ bail: return ret; } +/** + * rvt_dealloc_pd - Free PD + * @ibpd: Free up PD + * + * Return: always 0 + */ int rvt_dealloc_pd(struct ib_pd *ibpd) { struct rvt_pd *pd = ibpd_to_rvtpd(ibpd); |