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
- 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