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

Johann George johann at pathscale.com
Thu Nov 10 14:54:51 PST 2005


> So how about just doing
> 
> /* put list of devices in list and return length of list */
> extern int ibv_get_device_list(struct ibv_device * const **list);
> 
> /* free a list of devices from ibv_get_device_list */
> extern void ibv_free_device_list(struct ibv_device * const *list);

I like it much better than what we have now.  Clean, simple and easy to
understand.

> Or are the consts too confusing?  Should we be a little less safe but
> make it nice and simple and just do

I often find consts a bit of a nuisance for what they give me; but am fine
either way.  Both are simple enough.

Johann



More information about the general mailing list