Debian Codegraph @

libibverbs/man/ibv_query_port_speed.3.md

raw symbols SCIP
1 ---
2 date: 2025-10-19
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_port_speed
9 ---
10
11 # NAME
12
13 ibv_query_port_speed - query an RDMA port's effective bandwidth in 100Mb/s granularity
14
15 # SYNOPSIS
16
17 ```c
18 #include <infiniband/verbs.h>
19
20 int ibv_query_port_speed(struct ibv_context *context, uint32_t port_num, uint64_t *port_speed);
21
22 ```
23
24
25 # DESCRIPTION
26
27 **ibv_query_port_speed()** Queries the device of the context at the given port number
28 for the effective bandwidth of the port in 100Mb/s granularity.
29
30 # ARGUMENTS
31 *context*
32 : The device context.
33
34 *port_num*
35 : The device port number which needs to be queried.
36
37 *port_speed*
38 : The effective bandwidth of port for device context in a granularity of 100 Mb/s
39
40 # RETURN VALUE
41
42 **ibv_query_port_speed()** Returns 0 on success, or the value of errno on failure (which indicates the failure reason)
43
44 # NOTES
45
46 port_speed pointer value is valid only when the function returns 0.
47
48 # SEE ALSO
49
50 **ibv_query_port**(3)
51
52 # AUTHOR
53
54 Patrisious Haddad <[email protected]>
55 Or Har-Toov <[email protected]>