.\" Automatically generated by Pandoc 3.6 .\" .TH "ibv_query_port_speed" "3" "2025\-10\-19" "libibverbs" "Libibverbs Programmer\[cq]s Manual" .SH NAME ibv_query_port_speed \- query an RDMA port\[cq]s effective bandwidth in 100Mb/s granularity .SH SYNOPSIS .IP .EX #include \f[B]\f[R] int ibv_query_port_speed(\f[B]struct\f[R] ibv_context *context, uint32_t port_num, uint64_t *port_speed); .EE .SH DESCRIPTION \f[B]ibv_query_port_speed()\f[R] Queries the device of the context at the given port number for the effective bandwidth of the port in 100Mb/s granularity. .SH ARGUMENTS .TP \f[I]context\f[R] .IP .EX The device context. .EE .TP \f[I]port_num\f[R] .IP .EX The device port number which needs to be queried. .EE .TP \f[I]port_speed\f[R] The effective bandwidth of port for device context in a granularity of 100 Mb/s .SH RETURN VALUE \f[B]ibv_query_port_speed()\f[R] Returns 0 on success, or the value of errno on failure (which indicates the failure reason) .SH NOTES port_speed pointer value is valid only when the function returns 0. .SH SEE ALSO \f[B]ibv_query_port\f[R](3) .SH AUTHOR Patrisious Haddad \c .MT phaddad@nvidia.com .ME \c \ Or Har\-Toov \c .MT ohartoov@nvidia.com .ME \c