1UMAD_RECV(3) OpenIB Programmer´s Manual UMAD_RECV(3)
2
3
4
6 umad_recv - receive umad
7
9 #include <infiniband/umad.h>
10
11 int umad_recv(int portid, void *umad, int *length, int timeout_ms);
12
14 umad_recv() waits up to timeout_ms milliseconds for a packet to be
15 received from the port specified by portid. The packet is copied to
16 the umad buffer if there is sufficient room and the received length is
17 indicated. If the buffer is not large enough, the size of the umad
18 buffer needed is returned in length. A negative timeout_ms makes the
19 function block until a packet is received. A timeout_ms parameter of
20 zero indicates a non blocking read.
21
23 umad_recv() returns non negative receiving agentid on success, and a
24 negative value on error as follows:
25 -EINVAL invalid port handle or agentid
26 -EIO receive operation failed
27 -EWOULDBLOCK non blocking read can't be fulfilled
28
30 umad_poll(3)
31
33 Hal Rosenstock <halr@voltaire.com>
34
35
36
37OpenIB May 11, 2007 UMAD_RECV(3)