3 .TH UMAD_POLL 3 "October 23, 2007" "OpenIB" "OpenIB Programmer\'s Manual"
8 .B #include <infiniband/umad.h>
10 .BI "int umad_poll(int " "portid" ", int " "timeout_ms");
16 milliseconds for a packet to be received from the port specified by
18 Once a packet is ready to be read, the function
19 returns 0. After that the packet can be read using
21 Otherwise, \-ETIMEDOUT is returned. Note that successfully polling a port
22 does not guarantee that the subsequent
24 will be non blocking when several threads are using
25 the same port. Instead, use a
29 to ensure a non-blocking read.
32 returns 0 on success, and a negative value on error as follows:
33 -EINVAL invalid port handle or agentid
34 -ETIMEDOUT poll operation timed out
35 -EIO poll operation failed
40 Hal Rosenstock <halr@voltaire.com>