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