aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <roland@topspin.com>2005-04-28 23:17:52 +0000
committerRoland Dreier <rolandd@cisco.com>2006-11-09 11:35:56 -0800
commite96455b55889189baad36e16110d78edb7d09d28 (patch)
treeaeffb9ecbf2a1d9b4a6e0696af9ae7484c2de57b
parente64497a90dda4020aedb7cb722d0c528944211f9 (diff)
downloadlibibverbs-e96455b55889189baad36e16110d78edb7d09d28.tar.gz
Add documentation for ibv_poll_cq function
-rw-r--r--include/infiniband/verbs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/infiniband/verbs.h b/include/infiniband/verbs.h
index 5128c41..8f9e200 100644
--- a/include/infiniband/verbs.h
+++ b/include/infiniband/verbs.h
@@ -523,6 +523,16 @@ extern int ibv_get_cq_event(struct ibv_context *context, int comp_num,
/**
* ibv_poll_cq - Poll a CQ for work completions
+ * @cq:the CQ being polled
+ * @num_entries:maximum number of completions to return
+ * @wc:array of at least @num_entries of &struct ibv_wc where completions
+ * will be returned
+ *
+ * Poll a CQ for (possibly multiple) completions. If the return value
+ * is < 0, an error occurred. If the return value is >= 0, it is the
+ * number of completions returned. If the return value is
+ * non-negative and strictly less than num_entries, then the CQ was
+ * emptied.
*/
static inline int ibv_poll_cq(struct ibv_cq *cq, int num_entries, struct ibv_wc *wc)
{