1UMAD_GET_MAD_ADDR(3)      OpenIB Programmer's Manual      UMAD_GET_MAD_ADDR(3)
2
3
4

NAME

6       umad_get_mad_addr - get the address of the ib_mad_addr from a umad buf‐
7       fer
8

SYNOPSIS

10       #include <infiniband/umad.h>
11
12       ib_mad_addr_t * umad_get_mad_addr(void *umad);
13

DESCRIPTION

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

RETURN VALUE

19       The  return value is a pointer to an ib_mad_addr_t struct, as specified
20       in <infiniband/umad.h>.
21
22       typedef struct ib_mad_addr {
23               uint32_t qpn;
24               uint32_t qkey;
25               uint16_t lid;
26               uint8_t  sl;
27               uint8_t  path_bits;
28               uint8_t  grh_present;
29               uint8_t  gid_index;
30               uint8_t  hop_limit;
31               uint8_t  traffic_class;
32               uint8_t  gid[16];
33               uint32_t flow_label;
34       } ib_mad_addr_t;
35

AUTHOR

37       Hal Rosenstock <halr@voltaire.com>
38
39
40
41OpenIB                           May 21, 2007             UMAD_GET_MAD_ADDR(3)
Impressum