Blob Blame History Raw
.\" Automatically generated by Pandoc 1.19.2.4
.\"
.TH "IBV_QUERY_GID" "3" "2006\-10\-31" "libibverbs" "Libibverbs Programmer\[aq]s Manual"
.hy
.SH NAME
.PP
ibv_query_gid \- query an InfiniBand port\[aq]s GID table
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <infiniband/verbs.h>

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