IBV_QUERY_GID(3)

✨ ibv_query_gid(3) ✨

Bestie, welcome to the ibv_query_gid(3) page from the Libibverbs Programmer’s Manual 💅 it’s giving “look up one GID table entry” energy and honestly? Iconic. 🦋


🌸 NAME 🌸

ibv_query_gid — query an InfiniBand port’s GID table

🎀 SYNOPSIS 🎀

              #include <infiniband/verbs.h>

              int ibv_query_gid(struct ibv_context *context,
                                uint8_t port_num,
                                int index,
                                union ibv_gid *gid);

💅 DESCRIPTION 💅

Okay so ibv_query_gid() returns the GID value in entry index of port port_num for device context through the pointer gid. That’s the main-character move: you hand it your context, tell it which port_num, pick an index, and it drops the GID out through gid. Periodt. ✨

🫶 RETURN VALUE 🫶

ibv_query_gid() returns 0 on success, and -1 on error.

No cap: 0 is the slay outcome 💖 and -1 is the little uh-oh 😭

🌈 SEE ALSO 🌈

👑 AUTHOR 👑

Dotan Barak <dotanba@gmail.com>


xoxo, this page is from libibverbs, dated 2006-10-31, and it lives under IBV_QUERY_GID(3) 🎀💖

📦 where this page comes from