3 .TH UMAD_RECV 3 "May 11, 2007" "OpenIB" "OpenIB Programmer\'s Manual"
5 umad_recv \- receive umad
8 .B #include <infiniband/umad.h>
10 .BI "int umad_recv(int " "portid" ", void " "*umad" ", int " "*length" ", int " "timeout_ms");
16 milliseconds for a packet to be received from the port specified by
18 The packet is copied to the
20 buffer if there is sufficient room and the received
21 .I length\fR is indicated.
22 If the buffer is not large enough, the size of the umad
23 buffer needed is returned in
27 makes the function block until a packet is received. A
29 parameter of zero indicates a non blocking read.
32 returns non negative receiving agentid on success, and a negative value on error as follows:
33 -EINVAL invalid port handle or agentid
34 -EIO receive operation failed
35 -EWOULDBLOCK non blocking read can't be fulfilled
40 Hal Rosenstock <halr@voltaire.com>