Home
last modified time | relevance | path

Searched refs:nevents (Results 1 – 10 of 10) sorted by relevance

/unit/src/
H A Dnxt_select_engine.c282 int nevents, nfds, found; in nxt_select_poll() local
315 nevents = select(nfds, &engine->u.select.work_read_fd_set, in nxt_select_poll()
318 err = (nevents == -1) ? nxt_errno : 0; in nxt_select_poll()
322 nxt_debug(&engine->task, "select(): %d", nevents); in nxt_select_poll()
324 if (nevents == -1) { in nxt_select_poll()
330 for (fd = 0; fd < (nxt_uint_t) nfds && nevents != 0; fd++) { in nxt_select_poll()
368 nevents -= found; in nxt_select_poll()
H A Dnxt_eventport_engine.c454 uint_t nevents; in nxt_eventport_poll() local
495 nevents = 1; in nxt_eventport_poll()
497 engine->u.eventport.mevents, &nevents, tp); in nxt_eventport_poll()
509 if (nevents != 0) { in nxt_eventport_poll()
511 engine->u.eventport.fd, err, nevents); in nxt_eventport_poll()
528 engine->u.eventport.fd, nevents); in nxt_eventport_poll()
530 for (i = 0; i < nevents; i++) { in nxt_eventport_poll()
H A Dnxt_poll_engine.c502 int nevents; in nxt_poll() local
521 nevents = poll(engine->u.poll.set, engine->u.poll.nfds, timeout); in nxt_poll()
523 err = (nevents == -1) ? nxt_errno : 0; in nxt_poll()
527 nxt_debug(&engine->task, "poll(): %d", nevents); in nxt_poll()
529 if (nevents == -1) { in nxt_poll()
535 for (i = 0; i < engine->u.poll.nfds && nevents != 0; i++) { in nxt_poll()
631 nevents--; in nxt_poll()
H A Dnxt_pollset_engine.c547 int nevents; in nxt_pollset_poll() local
565 nevents = pollset_poll(engine->u.pollset.ps, engine->u.pollset.events, in nxt_pollset_poll()
568 err = (nevents == -1) ? nxt_errno : 0; in nxt_pollset_poll()
573 engine->u.pollset.ps, nevents); in nxt_pollset_poll()
575 if (nevents == -1) { in nxt_pollset_poll()
584 for (i = 0; i < nevents; i++) { in nxt_pollset_poll()
H A Dnxt_devpoll_engine.c558 int nevents; in nxt_devpoll_poll() local
581 nevents = ioctl(engine->u.devpoll.fd, DP_POLL, &dvp); in nxt_devpoll_poll()
583 err = (nevents == -1) ? nxt_errno : 0; in nxt_devpoll_poll()
588 engine->u.devpoll.fd, nevents); in nxt_devpoll_poll()
590 if (nevents == -1) { in nxt_devpoll_poll()
599 for (i = 0; i < nevents; i++) { in nxt_devpoll_poll()
H A Dnxt_test_build.c28 epoll_wait(int epfd, struct epoll_event *events, int nevents, int timeout) in epoll_wait() argument
H A Dnxt_kqueue_engine.c665 int nevents; in nxt_kqueue_poll() local
692 nevents = kevent(engine->u.kqueue.fd, in nxt_kqueue_poll()
696 err = (nevents == -1) ? nxt_errno : 0; in nxt_kqueue_poll()
700 nxt_debug(&engine->task, "kevent(%d): %d", engine->u.kqueue.fd, nevents); in nxt_kqueue_poll()
702 if (nevents == -1) { in nxt_kqueue_poll()
717 for (i = 0; i < nevents; i++) { in nxt_kqueue_poll()
H A Dnxt_epoll_engine.c873 int nevents; in nxt_epoll_poll() local
895 nevents = epoll_wait(engine->u.epoll.fd, engine->u.epoll.events, in nxt_epoll_poll()
898 err = (nevents == -1) ? nxt_errno : 0; in nxt_epoll_poll()
902 nxt_debug(&engine->task, "epoll_wait(%d): %d", engine->u.epoll.fd, nevents); in nxt_epoll_poll()
904 if (nevents == -1) { in nxt_epoll_poll()
913 for (i = 0; i < nevents; i++) { in nxt_epoll_poll()
H A Dnxt_test_build.h84 int epoll_wait(int epfd, struct epoll_event *events, int nevents, int timeout);
H A Dnxt_unit.c4593 int nevents, res, err; in nxt_unit_read_buf() local
4656 nevents = poll(fds, nfds, -1); in nxt_unit_read_buf()
4657 if (nxt_slow_path(nevents == -1)) { in nxt_unit_read_buf()
4673 fds[0].fd, fds[1].fd, nevents, fds[0].revents, in nxt_unit_read_buf()
4695 fds[0].fd, fds[1].fd, nevents, fds[0].revents, in nxt_unit_read_buf()