(SPAM?) [openib-general] [RFC] new ibv_get_devices() API -- avoid dlists

Roland Dreier rolandd at cisco.com
Thu Nov 10 15:16:27 PST 2005


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



More information about the general mailing list