IBV_GET_DEVICE_INDEX(3)
π IBV_GET_DEVICE_INDEX(3) π
okay so bestie, welcome to the Libibverbs Programmer's Manual β yes you're literally reading section 3, we love that for you π
β¨ NAME β¨
ibv_get_device_index β get an RDMA device index, no cap π¦
πΈ SYNOPSIS πΈ
#include <infiniband/verbs.h>
int ibv_get_device_index(struct ibv_device *device);
like, that's the whole vibe check right there π
π DESCRIPTION π
okay so ibv_get_device_index() returns the stable IB device index as it is assigned by the kernel. that's it. that's the function. icon behavior fr fr β¨
π₯ RETURN VALUE π₯
ibv_get_device_index() returns an index π β¦ or -1 if the kernel doesn't support device indexes π which, rude, but okay, that's the deal. not me getting a -1 and spiraling π«Ά
π SEE ALSO π
go read those too bestie, they're giving main character energy βπ
π§ AUTHOR π§
Leon Romanovsky <leonro@mellanox.com>
and that's the page!! written by the one and only libibverbs, dated 2020-04-22, and yeah we're still out here on IBV_GET_DEVICE_INDEX(3) β periodt π π
π¦ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 Β· GPL-2.0-only OR BSD-2-Clause
- centos-stream 10: rdma-core-devel 62.0-3.el10 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- ubuntu jammy: libibverbs-dev 39.0-1 Β· BSD-MIT OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms