IBV_RATE_TO_MULT(3)
IBV_RATE_TO_MULT(3) β¨
okay so bestie, this is from the Libibverbs Programmerβs Manual, and itβs literally just two lil functions that translate between IB rate enums and multiples of 2.5 Gbit/sec. no cap, thatβs the whole vibe. π¦
πΈ NAME πΈ
ibv_rate_to_mult β converts an IB rate enumeration into a multiplier of 2.5 Gbit/sec π
mult_to_ibv_rate β converts a multiplier of 2.5 Gbit/sec into an IB rate enumeration π
β¨ SYNOPSIS β¨
#include <infiniband/verbs.h>
int ibv_rate_to_mult(enum ibv_rate rate);
enum ibv_rate mult_to_ibv_rate(int mult);
π DESCRIPTION π
ibv_rate_to_mult() takes the IB transmission rate enumeration rate and turns it into a multiple of 2.5 Gbit/sec β thatβs the base rate, periodt. so like, if rate is IBV_RATE_5_GBPS, you get 2 back, because 5 Gbit/sec = 2 * 2.5 Gbit/sec. math ate, honestly. π₯
mult_to_ibv_rate() goes the other way: it takes the multiplier mult (again, a multiple of 2.5 Gbit/sec) and gives you back the IB transmission rate enumeration. example time: if mult is 2, then IBV_RATE_5_GBPS is what you get. icon behavior. π
π«Ά RETURN VALUE π«Ά
ibv_rate_to_mult() returns the multiplier of the base rate 2.5 Gbit/sec. slay. β
mult_to_ibv_rate() returns the enumeration representing the IB transmission rate. π
π SEE ALSO π
π AUTHOR π
Dotan Barak <dotanba@gmail.com>
mwah π β this lil page is from libibverbs, dated 2006-10-31. go off, bestie. π
π¦ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 Β· GPL-2.0-only OR BSD-2-Clause
- centos-stream 10: rdma-core-devel 62.0-3.el10 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- ubuntu jammy: libibverbs-dev 39.0-1 Β· BSD-MIT OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms