go to
> umad_recv(3)
Homepage > Man Pages > Category > Subroutines
Homepage > Man Pages > Name > U

umad_poll

man page of umad_poll

umad_poll: poll umad

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

Hal Rosenstock <halr@voltaire.com> UMAD_POLL(3)
 
 
 

Copyright © 2011–2018 by topics-of-interest.com . All rights reserved. Hosted by all-inkl.
Contact · Imprint · Privacy

Page generated in 24.60ms.

plr.li | daelim-forum.spreadshirt.de | www.daelim-forum.com