.\" Automatically generated by Pandoc 3.1.11.1
.\"
.TH "IBV_QUERY_GID" "3" "2006\-10\-31" "libibverbs" "Libibverbs Programmer\[cq]s Manual"
.SH NAME
ibv_query_gid \- query an InfiniBand port\[cq]s GID table
.SH SYNOPSIS
.IP
.EX
#include <infiniband/verbs.h>

int ibv_query_gid(struct ibv_context *context,
                  uint8_t port_num,
                  int index,
                  union ibv_gid *gid);
.EE
.SH DESCRIPTION
\f[B]ibv_query_gid()\f[R] returns the GID value in entry \f[I]index\f[R]
of port \f[I]port_num\f[R] for device context \f[I]context\f[R] through
the pointer \f[I]gid\f[R].
.SH RETURN VALUE
\f[B]ibv_query_gid()\f[R] returns 0 on success, and \-1 on error.
.SH SEE ALSO
\f[B]ibv_open_device\f[R](3), \f[B]ibv_query_device\f[R](3),
\f[B]ibv_query_pkey\f[R](3), \f[B]ibv_query_port\f[R](3)
.SH AUTHOR
Dotan Barak \c
.MT dotanba@gmail.com
.ME \c
