> I would prefer one call to get the entire structure.  Another option might
 > be:
 > 
 >     struct ibv_device ** ibv_get_device()
 > 
 > where it returns a list which is null terminated so you do not need to
 > return the length.

Yes, I thought of that too.  It seemed faintly preferable to tell the
caller how big the array was rather than forcing the caller to count
for itself.  But I can't really think of a use case where it makes a
difference, so perhaps your simpler version is better.

 - R.
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to