GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


NAME

       ibv_rate_to_mult - convert IB rate enumeration to multiplier of 2.5 Gbit/sec

       mult_to_ibv_rate - convert multiplier of 2.5 Gbit/sec to 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()  converts  the IB transmission rate enumeration rate
       to a multiple of 2.5 Gbit/sec (the base rate). For example, if rate  is
       IBV_RATE_5_GBPS,  the  value  2  will be returned (5 Gbit/sec = 2 * 2.5
       Gbit/sec).

       mult_to_ibv_rate() converts the multiplier value (of 2.5 Gbit/sec) mult
       to  an IB transmission rate enumeration. For example, if mult is 2, the
       rate enumeration IBV_RATE_5_GBPS will be returned.

RETURN VALUE

       ibv_rate_to_mult()  returns  the  multiplier  of  the  base  rate   2.5
       Gbit/sec.

       mult_to_ibv_rate()   returns   the   enumeration  representing  the  IB
       transmission rate.

SEE ALSO

       ibv_query_port(3)

AUTHORS

       Dotan Barak <dotanba@gmail.com>



  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.082 seconds. Last modified: November 04 2018 12:49:43.