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

NAME

6       umad_recv - receive umad
7

SYNOPSIS

9       #include <infiniband/umad.h>
10
11       int umad_recv(int portid, void *umad, int *length, int timeout_ms);
12

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

30       umad_poll(3)
31

AUTHOR

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