.\" Automatically generated by Pandoc 1.16.0.2
.\"
.TH "IBV_GET_DEVICE_INDEX" "3" "2020\-04\-22" "libibverbs" "Libibverbs Programmer\[aq]s Manual"
.hy
.SH NAME
.PP
ibv_get_device_index \- get an RDMA device index
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <infiniband/verbs.h>

int\ ibv_get_device_index(struct\ ibv_device\ *device);
\f[]
.fi
.SH DESCRIPTION
.PP
\f[B]ibv_get_device_index()\f[] returns stable IB device index as it is
assigned by the kernel.
.SH RETURN VALUE
.PP
\f[B]ibv_get_device_index()\f[] returns an index, or \-1 if the kernel
doesn\[aq]t support device indexes.
.SH SEE ALSO
.PP
\f[B]ibv_get_device_name\f[](3), \f[B]ibv_get_device_guid\f[](3),
\f[B]ibv_get_device_list\f[](3), \f[B]ibv_open_device\f[](3)
.SH AUTHOR
.PP
Leon Romanovsky <leonro@mellanox.com>
