logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rdma_get_devices - Get a list of RDMA devices currently available.

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.

Name

       rdma_get_devices - Get a list of RDMA devices currently available.

Notes

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

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.

See Also

rdma_free_devices(3)

librdmacm                                          2007-05-15                                RDMA_GET_DEVICES(3)

Synopsis

#include<rdma/rdma_cma.h>structibv_context**rdma_get_devices(int*num_devices);

See Also