umad_get_mad_addr(3) — Linux manual page


UMAD_GET_MAD_ADDR(3)     OpenIB Programmer's Manual     UMAD_GET_MAD_ADDR(3)

NAME         top

       umad_get_mad_addr  -  get  the address of the ib_mad_addr from a umad

SYNOPSIS         top

       #include <infiniband/umad.h>

       ib_mad_addr_t * umad_get_mad_addr(void *umad);

DESCRIPTION         top

       umad_get_mad_addr() returns a pointer to the ib_mad_addr struct
       within the specified umad buffer.

RETURN VALUE         top

       The return value is a pointer to an ib_mad_addr_t struct, as
       specified in <infiniband/umad.h>.

       typedef struct ib_mad_addr {
               uint32_t qpn;
               uint32_t qkey;
               uint16_t lid;
               uint8_t  sl;
               uint8_t  path_bits;
               uint8_t  grh_present;
               uint8_t  gid_index;
               uint8_t  hop_limit;
               uint8_t  traffic_class;
               uint8_t  gid[16];
               uint32_t flow_label;
       } ib_mad_addr_t;

AUTHOR         top

       Hal Rosenstock <>

COLOPHON         top

       This page is part of the rdma-core (RDMA Core Userspace Libraries and
       Daemons) project.  Information about the project can be found at 
       ⟨⟩.  If you have a bug report
       for this manual page, send it to  This
       page was obtained from the project's upstream Git repository
       ⟨⟩ on 2020-09-18.  (At
       that time, the date of the most recent commit that was found in the
       repository was 2020-09-16.)  If you discover any rendering problems
       in this HTML version of the page, or you believe there is a better or
       more up-to-date source for the page, or you have corrections or
       improvements to the information in this COLOPHON (which is not part
       of the original manual page), send a mail to

OpenIB                          May 21, 2007            UMAD_GET_MAD_ADDR(3)