1 .TH "RDMA_GET_DEVICES" 3 "2007-05-15" "librdmacm" "Librdmacm Programmer's Manual" librdmacm
3 rdma_get_devices \- Get a list of RDMA devices currently available.
5 .B "#include <rdma/rdma_cma.h>"
7 .B "struct ibv_context **" rdma_get_devices
8 .BI "(int *" num_devices ");"
11 If non-NULL, set to the number of devices returned.
13 Return a NULL-terminated array of opened RDMA devices. Callers can use
14 this routine to allocate resources on specific RDMA devices that will be
15 shared across multiple rdma_cm_id's.
17 The returned array must be released by calling rdma_free_devices. Devices
18 remain opened while the librdmacm is loaded.