[openib-general] [RFC] new ibv_get_devices() API -- avoid dlists
Johann George
johann at pathscale.com
Thu Nov 10 15:40:56 PST 2005
> It seemed faintly preferable to tell the caller how big the array was
> rather than forcing the caller to count for itself.
If you really wanted that, I would be more inclined towards:
struct ibv_device ** ibv_get_device(*length_ptr)
and if you do not want length, you could pass a null length_ptr. But since
I also cannot think of a strong case for it, I prefer the cleaner interface
of leaving it out.
Johann
More information about the general
mailing list