[ofa-general] [PATCH] manpage for ibv_get_cq_event

Or Gerlitz ogerlitz at voltaire.com
Wed Nov 28 23:46:13 PST 2007


frank zago wrote:
> The code sample in ibv_get_cq_event is missing the case where no wc is 
> available. Patch attached.

Hi Dotan,

I have brought the need for a general man page for libibverbs, similar 
in concept to rdma_cm(7), that provides some general information on the 
library and points to the other man pages, will you able to do that for 
OFED 1.3?

Or.

> ------------------------------------------------------------------------
> 
> --- ibv_get_cq_event.3.org	2007-11-27 10:24:54.000000000 -0600
> +++ ibv_get_cq_event.3	2007-11-27 10:26:52.000000000 -0600
> @@ -115,6 +115,9 @@
>                  return 1;
>          }
>  .PP
> +        if (ne == 0)
> +                return 1;
> +.PP
>          if (wc.status != IBV_WC_SUCCESS) {
>                  fprintf(stderr, "Completion with status 0x%x was found\en", wc.status);
>                  return 1;
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general





More information about the general mailing list