1UMAD_GET_CA_PORTGUIDS(3) OpenIB Programmer's Manual UMAD_GET_CA_PORTGUIDS(3)
2
3
4
6 umad_get_ca_portguids - get the InfiniBand device ports GUIDs
7
9 #include <infiniband/umad.h>
10
11 int umad_get_ca_portguids(char *ca_name, __be64 *portguids, int max);
12
14 umad_get_ca_portguids() fills the portguids array with up to max port
15 GUIDs belonging the specified IB device ca_name , or to the default IB
16 device if ca_name is NULL. The argument portguids is an array of max
17 uint64_t entries.
18
20 On success, umad_get_ca_portguids() returns a non-negative value equal
21 to the number of port GUIDs actually filled. Not all filled entries
22 may be valid. Invalid entries will be 0. For example, on a CA node
23 with only one port, this function returns a value of 2. In this case,
24 the value at index 0 will be invalid as it is reserved for switches.
25 On failure, a negative value is returned.
26
28 umad_get_cas_names(3)
29
31 Hal Rosenstock <halr@voltaire.com>
32
33 Dotan Barak <dotanb@mellanox.co.il>
34
35
36
37OpenIB August 8, 2016 UMAD_GET_CA_PORTGUIDS(3)