ibv_get_device_index - Man Page
get an RDMA device index
Synopsis
#include <infiniband/verbs.h> int ibv_get_device_index(struct ibv_device *device);
Description
ibv_get_device_index() returns stable IB device index as it is assigned by the kernel.
Return Value
ibv_get_device_index() returns an index, or -1 if the kernel doesn’t support device indexes.
See Also
ibv_get_device_name(3), ibv_get_device_guid(3), ibv_get_device_list(3), ibv_open_device(3)
Author
Leon Romanovsky <leonro@mellanox.com>
Referenced By
ibv_get_device_guid(3), ibv_get_device_list(3).
2020-04-22 Libibverbs Programmer’s Manual