Debian Codegraph @

libibverbs/man/ibv_query_pkey.3.md

raw symbols SCIP
1 ---
2 date: 2006-10-31
3 footer: libibverbs
4 header: "Libibverbs Programmer's Manual"
5 layout: page
6 license: 'Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md'
7 section: 3
8 title: IBV_QUERY_PKEY
9 ---
10
11 # NAME
12
13 ibv_query_pkey - query an InfiniBand port's P_Key table
14
15 # SYNOPSIS
16
17 ```c
18 #include <infiniband/verbs.h>
19
20 int ibv_query_pkey(struct ibv_context *context,
21 uint8_t port_num,
22 int index,
23 uint16_t *pkey);
24 ```
25
26 # DESCRIPTION
27
28 **ibv_query_pkey()** returns the P_Key value (in network byte order) in entry
29 *index* of port *port_num* for device context *context* through the pointer
30 *pkey*.
31
32 # RETURN VALUE
33
34 **ibv_query_pkey()** returns 0 on success, and -1 on error.
35
36 # SEE ALSO
37
38 **ibv_open_device**(3),
39 **ibv_query_device**(3),
40 **ibv_query_gid**(3),
41 **ibv_query_port**(3)
42
43 # AUTHOR
44
45 Dotan Barak <[email protected]>