1UMAD_REGISTER_OUI(3) OpenIB Programmer's Manual UMAD_REGISTER_OUI(3)
2
3
4
6 umad_register_oui - register the specified class in vendor range 2 for
7 port
8
10 #include <infiniband/umad.h>
11
12 int umad_register_oui(int portid, int mgmt_class, uint8_t rmpp_version, uint8_t oui[3], uint32_t method_mask[4]);
13
15 umad_register_oui() registers the specified class in vendor range 2,
16 the specified oui, and whether RMPP is being used for the port speci‐
17 fied by the portid handle. If method_mask array is provided, the caller
18 is registered as a replier (server) for the methods having their corre‐
19 sponding bit on in the method_mask. If method_mask is NULL, the caller
20 is registered as a MAD client, meaning that it can only receive replies
21 on MADs that it sent (solicited MADs).
22
24 umad_register() returns non-negative agent id number on success, and a
25 negative value on error as follows:
26 -EINVAL invalid port handle or class is not in the vendor class 2
27 range
28 -EPERM registration failed
29
31 umad_register(3), umad_unregister(3)
32
34 Hal Rosenstock <halr@voltaire.com>
35
36
37
38OpenIB May 17, 2007 UMAD_REGISTER_OUI(3)