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

NAME

6       umad_register - register the specified management class and version for
7       port
8

SYNOPSIS

10       #include <infiniband/umad.h>
11
12       int umad_register(int portid, int mgmt_class, int mgmt_version , uint8_t rmpp_version, long method_mask[16/sizeof(long)]);
13

DESCRIPTION

15       umad_register() registers the specified  management  class,  management
16       version,  and  whether RMPP is being used for the port specified by the
17       portid parameter. If method_mask array is provided, the caller is  reg‐
18       istered  as a replier (server) for the methods having their correspond‐
19       ing bit on in the method_mask.  If method_mask is NULL, the  caller  is
20       registered as a MAD client, meaning that it can only receive replies on
21       MADs that it sent (solicited MADs).
22

RETURN VALUE

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
27        -EPERM  registration failed
28

SEE ALSO

30       umad_register_oui(3), umad_unregister(3)
31

AUTHOR

33       Hal Rosenstock <halr@voltaire.com>
34
35
36
37OpenIB                           May 11, 2007                 UMAD_REGISTER(3)
Impressum