Debian Codegraph @

libibverbs/man/ibv_query_gid.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_GID
9 ---
10
11 # NAME
12
13 ibv_query_gid - query an InfiniBand port's GID table
14
15 # SYNOPSIS
16
17 ```c
18 #include <infiniband/verbs.h>
19
20 int ibv_query_gid(struct ibv_context *context,
21 uint8_t port_num,
22 int index,
23 union ibv_gid *gid);
24 ```
25
26 # DESCRIPTION
27
28 **ibv_query_gid()** returns the GID value in entry *index* of port *port_num*
29 for device context *context* through the pointer *gid*.
30
31 # RETURN VALUE
32
33 **ibv_query_gid()** returns 0 on success, and -1 on error.
34
35 # SEE ALSO
36
37 **ibv_open_device**(3),
38 **ibv_query_device**(3),
39 **ibv_query_pkey**(3),
40 **ibv_query_port**(3)
41
42 # AUTHOR
43
44 Dotan Barak <[email protected]>