rdma_get_devices (3) - Linux Man Pages
rdma_get_devices: Get a list of RDMA devices currently available.
NAMErdma_get_devices - Get a list of RDMA devices currently available.
- If non-NULL, set to the number of devices returned.
DESCRIPTIONReturn a NULL-terminated array of opened RDMA devices. Callers can use this routine to allocate resources on specific RDMA devices that will be shared across multiple rdma_cm_id's.
RETURN VALUEReturns an array of available RDMA devices, or NULL if the request fails. On failure, errno will be set to indicate the failure reason.
NOTESThe returned array must be released by calling rdma_free_devices. Devices remain opened while the librdmacm is loaded.