ibv_free_device_list()
Contents
void ibv_free_device_list(struct ibv_device **list); |
Description
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().
Parameters
Name | Direction | Description |
---|---|---|
list | in | RDMA device array, that was returned from ibv_get_device_list(), to free |
Return Values
None (this function always succeeds).
Examples
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); |
Comments
Tell us what do you think.
There are no comments on this entry.