.\" Automatically generated by Pandoc 2.18
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "IBV_QUERY_PKEY" "3" "2006-10-31" "libibverbs" "Libibverbs Programmer\[cq]s Manual"
.hy
.SH NAME
.PP
ibv_query_pkey - query an InfiniBand port\[cq]s P_Key table
.SH SYNOPSIS
.IP
.nf
\f[C]
#include <infiniband/verbs.h>

int ibv_query_pkey(struct ibv_context *context,
                   uint8_t port_num,
                   int index,
                   uint16_t *pkey);
\f[R]
.fi
.SH DESCRIPTION
.PP
\f[B]ibv_query_pkey()\f[R] returns the P_Key value (in network byte
order) 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]pkey\f[R].
.SH RETURN VALUE
.PP
\f[B]ibv_query_pkey()\f[R] returns 0 on success, and -1 on error.
.SH SEE ALSO
.PP
\f[B]ibv_open_device\f[R](3), \f[B]ibv_query_device\f[R](3),
\f[B]ibv_query_gid\f[R](3), \f[B]ibv_query_port\f[R](3)
.SH AUTHOR
.PP
Dotan Barak <dotanba@gmail.com>
