Man page - umad_poll(3)
Packages contas this manual
- umad_dump(3)
- umad_get_fd(3)
- umad_send(3)
- umad_get_ca(3)
- umad_attribute_str(3)
- umad_get_port(3)
- umad_release_port(3)
- umad_set_grh_net(3)
- umad_status(3)
- umad_set_addr(3)
- umad_done(3)
- umad_method_str(3)
- umad_set_pkey(3)
- umad_close_port(3)
- umad_register(3)
- umad_set_addr_net(3)
- umad_get_mad(3)
- umad_init(3)
- umad_get_pkey(3)
- umad_get_issm_path(3)
- umad_poll(3)
- umad_free(3)
- umad_unregister(3)
- umad_register2(3)
- umad_debug(3)
- umad_mad_status_str(3)
- umad_set_grh(3)
- umad_get_cas_names(3)
- umad_register_oui(3)
- umad_addr_dump(3)
- umad_open_port(3)
- umad_get_ca_portguids(3)
- umad_class_str(3)
- umad_alloc(3)
- umad_recv(3)
- umad_size(3)
- umad_release_ca(3)
- umad_get_mad_addr(3)
apt-get install libibumad-dev
Manual
| UMAD_POLL(3) | OpenIB Programmer's Manual | UMAD_POLL(3) |
NAME
umad_poll - poll umad
SYNOPSIS
#include <infiniband/umad.h> int umad_poll(int portid, int timeout_ms);
DESCRIPTION
umad_poll() waits up to timeout_ms milliseconds for a packet to be received from the port specified by portid. Once a packet is ready to be read, the function returns 0. After that the packet can be read using umad_recv(). Otherwise, -ETIMEDOUT is returned. Note that successfully polling a port does not guarantee that the subsequent umad_recv() will be non blocking when several threads are using the same port. Instead, use a timeout_ms parameter of zero to umad_recv() to ensure a non-blocking read.
RETURN VALUE
umad_poll() returns 0 on success, and a negative value on
error as follows:
-EINVAL invalid port handle or agentid
-ETIMEDOUT poll operation timed out
-EIO poll operation failed
SEE ALSO
umad_recv(3)
AUTHOR
| October 23, 2007 | OpenIB |