Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   rdma_get_devices    ( 3 )

получите список доступных в настоящее время устройств RDMA (Get a list of RDMA devices currently available.)

Имя (Name)

rdma_get_devices - Get a list of RDMA devices currently available.


Синопсис (Synopsis)

#include <rdma/rdma_cma.h>

struct ibv_context ** rdma_get_devices (int *num_devices);


Аргументы (Arguments)

num_devices If non-NULL, set to the number of devices returned.


Описание (Description)

Return 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 value)

Returns an array of available RDMA devices, or NULL if the request fails. On failure, errno will be set to indicate the failure reason.


Примечание (Note)

The returned array must be released by calling rdma_free_devices. Devices remain opened while the librdmacm is loaded.


Смотри также (See also)

rdma_free_devices(3)