.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "IBV_GET_DEVICE_INDEX" "3" "2020-04-22" "libibverbs" "Libibverbs Programmer\[cq]s Manual" .hy .SH NAME .PP ibv_get_device_index - get an RDMA device index .SH SYNOPSIS .IP .nf \f[C] #include int ibv_get_device_index(struct ibv_device *device); \f[R] .fi .SH DESCRIPTION .PP \f[B]ibv_get_device_index()\f[R] returns stable IB device index as it is assigned by the kernel. .SH RETURN VALUE .PP \f[B]ibv_get_device_index()\f[R] returns an index, or -1 if the kernel doesn\[cq]t support device indexes. .SH SEE ALSO .PP \f[B]ibv_get_device_name\f[R](3), \f[B]ibv_get_device_guid\f[R](3), \f[B]ibv_get_device_list\f[R](3), \f[B]ibv_open_device\f[R](3) .SH AUTHOR .PP Leon Romanovsky