NAME

xpoll_wait - wait for an I/O event on an xpoll instance

SYNOPSIS

#include <xio/poll.h>

int xpoll_wait(int pollfd, struct xpoll_event *events, int n, u32 timeout);

DESCRIPTION

see more details on xpoll_ctl[3]

RETURN VALUE

When successful, xpoll_wait() returns the number of xsocket ready for the requested I/O, or zero if no xsocket ready during the requested timeout milliseconds. When an error occurs, epoll_wait() returns -1 and errno is set appropriately.

ERRORS

EINVAL

maxevents is less than or equal to zero.

SEE ALSO

xpoll_ctl(3) xio(7)

AUTHORS

Dong Fang <yp.fangdong@gmail.com>
Martin Sustrik <sustrik@250bpm.com>