void ibv_free_device_list(struct ibv_device **list);
ibv_free_device_list() frees the RDMA devices array list.
Once the array is freed, pointers to devices that were not opened with ibv_open_device() are no longer valid. Client code must open all devices, it intends to use before calling ibv_free_device_list().
|list||in||RDMA device array, that was returned from ibv_get_device_list(), to free|
None (this function always succeeds).
Get device list and free it:
struct ibv_device **dev_list; dev_list = ibv_get_device_list(NULL); if (!dev_list) exit(1); ... ibv_free_device_list(dev_list);
Tell us what do you think.
There are no comments on this entry.