1UMAD_SEND(3) OpenIB Programmer´s Manual UMAD_SEND(3)
2
3
4
6 umad_send - send umad
7
9 #include <infiniband/umad.h>
10
11 int umad_send(int portid, int agentid, void *umad, int timeout_ms, int retries);
12
14 umad_send() sends the specified umad buffer from the port specified by
15 portid, and using the agent specified by agentid. timeout_ms controls
16 the solicited MADs behavior as follows: zero value means not solicited.
17 Positive value makes kernel indicate timeout in milliseconds. If reply
18 is not received within the specified value, the original buffer is
19 returned in the read channel with the status field set (to non zero).
20 Negative timeout_ms makes kernel wait forever for the reply. retries
21 indicates the number of times the MAD will be retried before giving up.
22
24 umad_send() returns 0 on success, and a negative value on error as fol‐
25 lows:
26 -EINVAL invalid port handle or agentid
27 -EIO send operation failed
28
30 Hal Rosenstock <halr@voltaire.com>
31
32
33
34OpenIB May 11, 2007 UMAD_SEND(3)