1UMAD_GET_CA(3)            OpenIB Programmer´s Manual            UMAD_GET_CA(3)
2
3
4

NAME

6       umad_get_ca,  umad_release_ca  - get and release InfiniBand device port
7       attributes
8

SYNOPSIS

10       #include <infiniband/umad.h>
11
12       int umad_get_ca(char *ca_name, umad_ca_t *ca);
13       int umad_release_ca(umad_ca_t *ca);
14

DESCRIPTION

16       umad_get_ca() gets the attributes of the InfiniBand device ca_name.  It
17       fills  the  ca  structure  with  the device attributes specified by the
18       ca_name or with the default  device  attributes  if  ca_name  is  NULL.
19       umad_release_ca()  should  be called before the ca structure is deallo‐
20       cated.  The argument  ca  is  an  umad_ca_t  struct,  as  specified  in
21       <infiniband/umad.h>.
22
23       typedef struct umad_ca {
24               char ca_name[UMAD_CA_NAME_LEN];                 /* Name of the device */
25               uint node_type;                                 /* Type of the device */
26               int numports;                                   /* Number of physical ports */
27               char fw_ver[20];                                /* FW version */
28               char ca_type[40];                               /* CA type (e.g. MT23108, etc.) */
29               char hw_ver[20];                                /* Hardware version */
30               uint64_t node_guid;                             /* Node GUID */
31               uint64_t system_guid;                           /* System image GUID */
32               umad_port_t *ports[UMAD_CA_MAX_PORTS];          /* Array of device port properties */
33       } umad_ca_t;
34
35       umad_release_ca()  releases  the  resources  that were allocated in the
36       function umad_get_ca().
37

RETURN VALUE

39       umad_get_ca() and umad_release_ca() return 0 on success, and a negative
40       value on error.
41

AUTHORS

43       Hal Rosenstock <halr@voltaire.com>
44
45       Dotan Barak <dotanb@mellanox.co.il>
46
47
48
49OpenIB                           May 21, 2007                   UMAD_GET_CA(3)
Impressum