[openib-general] is wc valid if ib_poll_cq() returns zero

Sean Hefty mshefty at ichips.intel.com
Fri Jul 14 09:50:01 PDT 2006


somenath wrote:
> 1. if ib_poll_cq(cq, 1, &wc) returns zero, does wc contain a valid entry?

no

  * 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.

- Sean




More information about the general mailing list