Man page - umad_release_ca(3)
Packages contains this manual
- umad_done(3)
- umad_set_grh(3)
- umad_send(3)
- umad_get_port(3)
- umad_dump(3)
- umad_register_oui(3)
- umad_set_grh_net(3)
- umad_recv(3)
- umad_alloc(3)
- umad_get_ca(3)
- umad_register(3)
- umad_class_str(3)
- umad_size(3)
- umad_unregister(3)
- umad_get_pkey(3)
- umad_addr_dump(3)
- umad_get_mad(3)
- umad_init(3)
- umad_method_str(3)
- umad_get_issm_path(3)
- umad_get_fd(3)
- umad_register2(3)
- umad_release_ca(3)
- umad_poll(3)
- umad_debug(3)
- umad_status(3)
- umad_get_mad_addr(3)
- umad_mad_status_str(3)
- umad_close_port(3)
- umad_release_port(3)
- umad_attribute_str(3)
- umad_get_cas_names(3)
- umad_get_ca_portguids(3)
- umad_open_port(3)
- umad_set_pkey(3)
- umad_free(3)
- umad_set_addr(3)
- umad_set_addr_net(3)
apt-get install libibumad-dev
Manual
UMAD_GET_CA
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
AUTHORS
NAME
umad_get_ca, umad_release_ca - get and release InfiniBand device port attributes
SYNOPSIS
#include <infiniband/umad.h>
int umad_get_ca(char *ca_name , umad_ca_t *ca );
int umad_release_ca(umad_ca_t *ca );
DESCRIPTION
umad_get_ca() gets the attributes of the InfiniBand device ca_name . It fills the ca structure with the device attributes specified by the ca_name or with the default device attributes if ca_name is NULL. umad_release_ca() should be called before the ca structure is deallocated. The argument ca is an umad_ca_t struct, as specified in <infiniband/umad.h>.
typedef struct umad_ca {
char ca_name[UMAD_CA_NAME_LEN];
/* Name of the device */
uint node_type; /* Type of the device */
int numports; /* Number of physical ports */
char fw_ver[20]; /* FW version */
char ca_type[40]; /* CA type (e.g. MT23108, etc.) */
char hw_ver[20]; /* Hardware version */
uint64_t node_guid; /* Node GUID */
uint64_t system_guid; /* System image GUID */
umad_port_t *ports[UMAD_CA_MAX_PORTS]; /* Array of device
port properties */
} umad_ca_t;
umad_release_ca() releases the resources that were allocated in the function umad_get_ca() .
RETURN VALUE
umad_get_ca() and umad_release_ca() return 0 on success, and a negative value on error.
AUTHORS
Hal Rosenstock
<halr@voltaire.com>
Dotan Barak <dotanb@mellanox.co.il>