Gets and releases the list of available RDMA devices.
#include <rdma/verbs.h> struct ibv_device **ibv_get_device_list(int *num_devices); void ibv_free_device_list(struct ibv_device **list);
ibv_get_device_list() returns a NULL-terminated array of RDMA devices currently available. The argument num_devices is optional and if it is NULL, it is set to the number of devices returned in the array.
ibv_free_device_list() frees the array of devices list returned by ibv_get_device_list().
num_devices | (Optional) If not null, the number of devices returned in the array will be stored here. |
ibv_get_device_list() returns the array of available RDMA devices, or NULL if the request fails.
ibv_free_device_list() returns no value.